From 10925e006bf43edc79331fbe601e09a28c43df2b Mon Sep 17 00:00:00 2001 From: "Gabriel A. Giovanini" Date: Sat, 15 Jun 2024 19:21:34 +0200 Subject: fix: Reduce some redirects --- pkg/handler/router.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'pkg/handler') diff --git a/pkg/handler/router.go b/pkg/handler/router.go index 3da812f..c8f8984 100644 --- a/pkg/handler/router.go +++ b/pkg/handler/router.go @@ -36,11 +36,11 @@ func MountHandler( mux.HandleFunc("/static/{file}", staticHandler) mux.HandleFunc("/{name}/about/{$}", gitHandler.About) - mux.HandleFunc("/{name}", gitHandler.Summary) + mux.HandleFunc("/{name}/", gitHandler.Summary) mux.HandleFunc("/{name}/refs/{$}", gitHandler.Refs) 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}/log/{ref}/", gitHandler.Log) mux.HandleFunc("/config", configHandler) mux.HandleFunc("/about", aboutHandler.About) mux.HandleFunc("/", gitHandler.List) -- cgit v1.2.3