aboutsummaryrefslogtreecommitdiff
path: root/pkg/handler/router.go
diff options
context:
space:
mode:
authorGabriel A. Giovanini <mail@gabrielgio.me>2024-06-25 20:37:40 +0200
committerGabriel A. Giovanini <mail@gabrielgio.me>2024-06-25 20:37:40 +0200
commit907c13566c775ac1210bc66de99f7273e7c8a507 (patch)
treeb2c3f6a647441d452e8a5c119f7d00dd947b7dff /pkg/handler/router.go
parent75d3ee252e7d966055bb76258d3e0da28488d261 (diff)
downloadcerrado-907c13566c775ac1210bc66de99f7273e7c8a507.tar.gz
cerrado-907c13566c775ac1210bc66de99f7273e7c8a507.tar.bz2
cerrado-907c13566c775ac1210bc66de99f7273e7c8a507.zip
feat: Add commit page
Diffstat (limited to 'pkg/handler/router.go')
-rw-r--r--pkg/handler/router.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/pkg/handler/router.go b/pkg/handler/router.go
index 6ee7ba3..f464ac2 100644
--- a/pkg/handler/router.go
+++ b/pkg/handler/router.go
@@ -41,6 +41,7 @@ func MountHandler(
mux.HandleFunc("/{name}/tree/{ref}/{rest...}", gitHandler.Tree)
mux.HandleFunc("/{name}/blob/{ref}/{rest...}", gitHandler.Blob)
mux.HandleFunc("/{name}/log/{ref}/", gitHandler.Log)
+ mux.HandleFunc("/{name}/commit/{ref}/", gitHandler.Commit)
mux.HandleFunc("/{name}/archive/{file}", gitHandler.Archive)
mux.HandleFunc("/config", configHandler)
mux.HandleFunc("/about", aboutHandler.About)