diff --git a/serve/serve.go b/serve/serve.go index 8352f29..7f0cd04 100644 --- a/serve/serve.go +++ b/serve/serve.go @@ -106,7 +106,7 @@ func Serve() { return nil }) app.Get("/:user/:repo", pages.HandleRepo) - app.Get("/:user/:repo/tree/:branch/+", pages.FileView) + app.Get("/:user/:repo/blob/:branch/+", pages.FileView) app.Get("/download/:user/:repo/:branch", 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 3c7c20b..af1624b 100644 --- a/views/repo.html +++ b/views/repo.html @@ -40,7 +40,7 @@ {{ else }}