+2
-2
config.yaml
+2
-2
config.yaml
+1
-1
go.mod
+1
-1
go.mod
···
10
github.com/go-git/go-git/v5 v5.12.0
11
github.com/microcosm-cc/bluemonday v1.0.27
12
github.com/russross/blackfriday/v2 v2.1.0
13
-
golang.org/x/sys v0.26.0
14
gopkg.in/yaml.v3 v3.0.1
15
)
16
···
36
github.com/xanzy/ssh-agent v0.3.3 // indirect
37
golang.org/x/crypto v0.28.0 // indirect
38
golang.org/x/net v0.30.0 // indirect
39
gopkg.in/warnings.v0 v0.1.2 // indirect
40
)
41
···
10
github.com/go-git/go-git/v5 v5.12.0
11
github.com/microcosm-cc/bluemonday v1.0.27
12
github.com/russross/blackfriday/v2 v2.1.0
13
gopkg.in/yaml.v3 v3.0.1
14
)
15
···
35
github.com/xanzy/ssh-agent v0.3.3 // indirect
36
golang.org/x/crypto v0.28.0 // indirect
37
golang.org/x/net v0.30.0 // indirect
38
+
golang.org/x/sys v0.26.0 // indirect
39
gopkg.in/warnings.v0 v0.1.2 // indirect
40
)
41
+1
-1
legit/routes/handler.go
+1
-1
legit/routes/handler.go
+3
-2
legit/routes/routes.go
+3
-2
legit/routes/routes.go
···
25
}
26
27
func (d *deps) Index(w http.ResponseWriter, r *http.Request) {
28
-
dirs, err := os.ReadDir(d.c.Repo.ScanPath)
29
if err != nil {
30
d.Write500(w)
31
log.Printf("reading scan path: %s", err)
···
45
continue
46
}
47
48
-
path := filepath.Join(d.c.Repo.ScanPath, name)
49
gr, err := git.Open(path, "")
50
if err != nil {
51
log.Println(err)
···
25
}
26
27
func (d *deps) Index(w http.ResponseWriter, r *http.Request) {
28
+
user := "@" + chi.URLParam(r, "user")
29
+
path := filepath.Join(d.c.Repo.ScanPath, user)
30
+
dirs, err := os.ReadDir(path)
31
if err != nil {
32
d.Write500(w)
33
log.Printf("reading scan path: %s", err)
···
47
continue
48
}
49
50
gr, err := git.Open(path, "")
51
if err != nil {
52
log.Println(err)