diff options
author | Anirudh Oppiliappan <x@icyphox.sh> | 2022-12-11 14:18:39 +0530 |
---|---|---|
committer | Anirudh Oppiliappan <x@icyphox.sh> | 2022-12-11 14:18:39 +0530 |
commit | ac6ca71f01885b3fff692b4b9ee36ed33965d396 (patch) | |
tree | 6270a3a3c849df8b6fcbd95f9930f39a239e4cfb /routes/handler.go | |
parent | ab30497e169cd3bfcd122e668c3cdde6bd48305b (diff) | |
download | legit-ac6ca71f01885b3fff692b4b9ee36ed33965d396.tar.gz legit-ac6ca71f01885b3fff692b4b9ee36ed33965d396.tar.bz2 legit-ac6ca71f01885b3fff692b4b9ee36ed33965d396.zip |
routes: file content view
Diffstat (limited to 'routes/handler.go')
-rw-r--r-- | routes/handler.go | 3 |
1 files changed, 2 insertions, 1 deletions
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 } |