forked from tangled.org/core
this repo has no description

remove redundant import rename

Changed files
+1 -15
routes
+1 -1
routes/access.go
···
import (
"github.com/go-chi/chi/v5"
"github.com/icyphox/bild/db"
-
auth "github.com/icyphox/bild/routes/auth"
"log"
"net/http"
)
···
import (
"github.com/go-chi/chi/v5"
+
"github.com/icyphox/bild/auth"
"github.com/icyphox/bild/db"
"log"
"net/http"
)
-14
routes/routes.go
···
}
}
-
// func (h *Handle) addUserToRepo(w http.ResponseWriter, r *http.Request) {
-
// repoOwnerHandle := chi.URLParam(r, "user")
-
// repoOwner, err := auth.ResolveIdent(r.Context(), repoOwnerHandle)
-
// if err != nil {
-
// log.Println("invalid did")
-
// http.Error(w, "invalid did", http.StatusNotFound)
-
// return
-
// }
-
// repoName := chi.URLParam(r, "name")
-
// session, _ := h.s.Get(r, "bild-session")
-
// did := session.Values["did"].(string)
-
//
-
// err := h.db.SetWriter()
-
// }
func (h *Handle) Collaborators(w http.ResponseWriter, r *http.Request) {
// put repo resolution in middleware
repoOwnerHandle := chi.URLParam(r, "user")
···
}
}
func (h *Handle) Collaborators(w http.ResponseWriter, r *http.Request) {
// put repo resolution in middleware
repoOwnerHandle := chi.URLParam(r, "user")