diff --git a/serve/serve.go b/serve/serve.go index d7ded1d..8da421f 100644 --- a/serve/serve.go +++ b/serve/serve.go @@ -105,7 +105,7 @@ func Serve() { return nil }) app.Get("/:user/:repo", ratelimiter, pages.HandleRepo) - app.Get("/file/:user/:repo/:branch/+", pages.FileView) + app.Get("/:user/:repo/tree/:branch/+", pages.FileView) app.Get("/download/:user/:repo/:branch", ratelimiter, func(c *fiber.Ctx) error { utils.ProxyRequest(c, "https://github.com/"+c.Params("user")+"/"+c.Params("repo")+"/archive/"+c.Params("branch")+".zip") return nil diff --git a/views/repo.html b/views/repo.html index 910c41a..72d62da 100644 --- a/views/repo.html +++ b/views/repo.html @@ -35,7 +35,7 @@ {{ if eq .Type "dir" }}
  • {{.Path}} (directory)
  • {{ else }} -
  • {{.Path}}
  • +
  • {{.Path}}
  • {{ end }} {{ end }}