From ac6ca71f01885b3fff692b4b9ee36ed33965d396 Mon Sep 17 00:00:00 2001 From: Anirudh Oppiliappan Date: Sun, 11 Dec 2022 14:18:39 +0530 Subject: routes: file content view --- routes/handler.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'routes/handler.go') diff --git a/routes/handler.go b/routes/handler.go index e00d412..523239a 100644 --- a/routes/handler.go +++ b/routes/handler.go @@ -9,6 +9,7 @@ func Handlers(c *config.Config) *flow.Mux { mux := flow.New() d := deps{c} mux.HandleFunc("/:name", d.RepoIndex, "GET") - mux.HandleFunc("/:name/tree/:ref/...", d.RepoFiles, "GET") + mux.HandleFunc("/:name/tree/:ref/...", d.RepoTree, "GET") + mux.HandleFunc("/:name/blob/:ref/...", d.FileContent, "GET") return mux } -- cgit