tangled
alpha
login
or
join now
tjh.dev
/
core
forked from
tangled.org/core
0
fork
atom
this repo has no description
0
fork
atom
overview
issues
pulls
pipelines
remove redundant import rename
oppi.li
1 year ago
3cdb6439
fe5a22dd
+1
-15
2 changed files
expand all
collapse all
unified
split
routes
access.go
routes.go
+1
-1
routes/access.go
···
2
2
3
3
import (
4
4
"github.com/go-chi/chi/v5"
5
5
+
"github.com/icyphox/bild/auth"
5
6
"github.com/icyphox/bild/db"
6
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
434
-
// func (h *Handle) addUserToRepo(w http.ResponseWriter, r *http.Request) {
435
435
-
// repoOwnerHandle := chi.URLParam(r, "user")
436
436
-
// repoOwner, err := auth.ResolveIdent(r.Context(), repoOwnerHandle)
437
437
-
// if err != nil {
438
438
-
// log.Println("invalid did")
439
439
-
// http.Error(w, "invalid did", http.StatusNotFound)
440
440
-
// return
441
441
-
// }
442
442
-
// repoName := chi.URLParam(r, "name")
443
443
-
// session, _ := h.s.Get(r, "bild-session")
444
444
-
// did := session.Values["did"].(string)
445
445
-
//
446
446
-
// err := h.db.SetWriter()
447
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")