diff options
Diffstat (limited to 'routes/handler.go')
-rw-r--r-- | routes/handler.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/routes/handler.go b/routes/handler.go index 13e4ae4..e00d412 100644 --- a/routes/handler.go +++ b/routes/handler.go @@ -8,7 +8,7 @@ import ( func Handlers(c *config.Config) *flow.Mux { mux := flow.New() d := deps{c} - mux.HandleFunc("/:name", d.Repo, "GET") - mux.HandleFunc("/:name/tree/...", d.Repo, "GET") + mux.HandleFunc("/:name", d.RepoIndex, "GET") + mux.HandleFunc("/:name/tree/:ref/...", d.RepoFiles, "GET") return mux } |