alpha
Login
or
Join now
dunkirk.sh
/
core
forked from
tangled.org/core
Star
0
Fork
0
Atom
Configure Feed
Issues
Pull Requests
Commits
Tags
Feed URL
Select the types of activity you want to include in your feed.
This repository has no description
Star
0
Fork
0
Atom
Configure Feed
Issues
Pull Requests
Commits
Tags
Feed URL
Select the types of activity you want to include in your feed.
Overview
Issues
Pulls
Pipelines
remove redundant import rename
author
Akshay
date
1 year ago
(Jan 29, 2025, 5:22 PM UTC)
commit
a86e8e3e
a86e8e3eb06e37dec854d7f187b34f331fad063e
parent
b527eba4
b527eba4a36b5b4135f9b866d773019faffaf4e5
+1
-15
2 changed files
Expand all
Collapse all
Unified
Split
routes
access.go
routes.go
+1
-1
routes/access.go
Reviewed
···
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
Reviewed
···
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")