From 6857a2f002358c47f588c8417482a5afd01725d0 Mon Sep 17 00:00:00 2001 From: Anirudh Oppiliappan Date: Sun, 11 Dec 2022 12:29:50 +0530 Subject: routes: split repo index and files views --- routes/handler.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'routes/handler.go') 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 } -- cgit v1.2.3