From acac8d47d0dd4bab02274f750d22937044bee988 Mon Sep 17 00:00:00 2001 From: "Gabriel A. Giovanini" Date: Sun, 23 Jun 2024 15:20:47 +0200 Subject: routes: Add handler to generate tar gz file --- routes/handler.go | 1 + 1 file changed, 1 insertion(+) (limited to 'routes/handler.go') 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) -- cgit v1.2.3