this repo has no description

remove redundant import rename

Akshay 3cdb6439 fe5a22dd

Changed files
+1 -15
routes
+1 -1
routes/access.go
··· 2 2 3 3 import ( 4 4 "github.com/go-chi/chi/v5" 5 + "github.com/icyphox/bild/auth" 5 6 "github.com/icyphox/bild/db" 6 - auth "github.com/icyphox/bild/routes/auth" 7 7 "log" 8 8 "net/http" 9 9 )
-14
routes/routes.go
··· 431 431 } 432 432 } 433 433 434 - // func (h *Handle) addUserToRepo(w http.ResponseWriter, r *http.Request) { 435 - // repoOwnerHandle := chi.URLParam(r, "user") 436 - // repoOwner, err := auth.ResolveIdent(r.Context(), repoOwnerHandle) 437 - // if err != nil { 438 - // log.Println("invalid did") 439 - // http.Error(w, "invalid did", http.StatusNotFound) 440 - // return 441 - // } 442 - // repoName := chi.URLParam(r, "name") 443 - // session, _ := h.s.Get(r, "bild-session") 444 - // did := session.Values["did"].(string) 445 - // 446 - // err := h.db.SetWriter() 447 - // } 448 434 func (h *Handle) Collaborators(w http.ResponseWriter, r *http.Request) { 449 435 // put repo resolution in middleware 450 436 repoOwnerHandle := chi.URLParam(r, "user")