From a86e8e3eb06e37dec854d7f187b34f331fad063e Mon Sep 17 00:00:00 2001 From: Akshay Date: Wed, 29 Jan 2025 09:52:18 +0000 Subject: [PATCH] remove redundant import rename --- routes/access.go | 2 +- routes/routes.go | 14 -------------- 2 files changed, 1 insertion(+), 15 deletions(-) diff --git a/routes/access.go b/routes/access.go index fa75a05..9b5c839 100644 --- a/routes/access.go +++ b/routes/access.go @@ -2,8 +2,8 @@ package routes import ( "github.com/go-chi/chi/v5" + "github.com/icyphox/bild/auth" "github.com/icyphox/bild/db" - auth "github.com/icyphox/bild/routes/auth" "log" "net/http" ) diff --git a/routes/routes.go b/routes/routes.go index 753ceee..e1fdebe 100644 --- a/routes/routes.go +++ b/routes/routes.go @@ -431,20 +431,6 @@ func (h *Handle) Refs(w http.ResponseWriter, r *http.Request) { } } -// 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") -- 2.51.2