aboutsummaryrefslogtreecommitdiff
path: root/routes/handler.go
diff options
context:
space:
mode:
authorGabriel A. Giovanini <mail@gabrielgio.me>2024-06-23 15:20:47 +0200
committerAnirudh Oppiliappan <x@icyphox.sh>2024-06-29 11:16:38 +0300
commitacac8d47d0dd4bab02274f750d22937044bee988 (patch)
tree439bb87c27e9982a594d66531b08180c567d521b /routes/handler.go
parentgit: Add function to generate tar file from repo (diff)
downloadlegitrx-acac8d47d0dd4bab02274f750d22937044bee988.tar.gz
legitrx-acac8d47d0dd4bab02274f750d22937044bee988.tar.zst
legitrx-acac8d47d0dd4bab02274f750d22937044bee988.zip
routes: Add handler to generate tar gz file
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 bbe5e2c..2a35168 100644
--- a/routes/handler.go
+++ b/routes/handler.go
@@ -39,6 +39,7 @@ func Handlers(c *config.Config) *http.ServeMux {
mux.HandleFunc("GET /{name}/tree/{ref}/{rest...}", d.RepoTree)
mux.HandleFunc("GET /{name}/blob/{ref}/{rest...}", d.FileContent)
mux.HandleFunc("GET /{name}/log/{ref}", d.Log)
+ mux.HandleFunc("GET /{name}/archive/{file}", d.Archive)
mux.HandleFunc("GET /{name}/commit/{ref}", d.Diff)
mux.HandleFunc("GET /{name}/refs/{$}", d.Refs)
mux.HandleFunc("GET /{name}/{rest...}", d.Multiplex)