summaryrefslogtreecommitdiffstats
path: root/routes/handler.go
diff options
context:
space:
mode:
authorLibravatar Anirudh Oppiliappan <x@icyphox.sh>2022-12-12 17:17:49 +0530
committerLibravatar Anirudh Oppiliappan <x@icyphox.sh>2022-12-12 17:17:49 +0530
commitc165c447685d68c2b0b2293a31937a903394f943 (patch)
treeb2aa9f24cb263a2cc72c3167ec7233139e192c3a /routes/handler.go
parentce71721c6dc80db8af63f2098a1548308e2621b2 (diff)
downloadlegit-c165c447685d68c2b0b2293a31937a903394f943.tar.gz
legit-c165c447685d68c2b0b2293a31937a903394f943.tar.bz2
legit-c165c447685d68c2b0b2293a31937a903394f943.zip
git, routes: commit diff view
Diffstat (limited to 'routes/handler.go')
-rw-r--r--routes/handler.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/routes/handler.go b/routes/handler.go
index 5a1cff4..2625b43 100644
--- a/routes/handler.go
+++ b/routes/handler.go
@@ -12,5 +12,6 @@ func Handlers(c *config.Config) *flow.Mux {
mux.HandleFunc("/:name/tree/:ref/...", d.RepoTree, "GET")
mux.HandleFunc("/:name/blob/:ref/...", d.FileContent, "GET")
mux.HandleFunc("/:name/log/:ref", d.Log, "GET")
+ mux.HandleFunc("/:name/commit/:ref", d.Diff, "GET")
return mux
}