summaryrefslogtreecommitdiffstats
path: root/routes/handler.go
diff options
context:
space:
mode:
Diffstat (limited to 'routes/handler.go')
-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
}