summaryrefslogtreecommitdiffstats
path: root/routes/handler.go
diff options
context:
space:
mode:
authorLibravatar Anirudh Oppiliappan <x@icyphox.sh>2022-12-11 14:18:39 +0530
committerLibravatar Anirudh Oppiliappan <x@icyphox.sh>2022-12-11 14:18:39 +0530
commitac6ca71f01885b3fff692b4b9ee36ed33965d396 (patch)
tree6270a3a3c849df8b6fcbd95f9930f39a239e4cfb /routes/handler.go
parentab30497e169cd3bfcd122e668c3cdde6bd48305b (diff)
downloadlegit-ac6ca71f01885b3fff692b4b9ee36ed33965d396.tar.gz
legit-ac6ca71f01885b3fff692b4b9ee36ed33965d396.tar.bz2
legit-ac6ca71f01885b3fff692b4b9ee36ed33965d396.zip
routes: file content view
Diffstat (limited to '')
-rw-r--r--routes/handler.go3
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
}