diff options
author | Gabriel A. Giovanini <mail@gabrielgio.me> | 2024-06-15 19:21:34 +0200 |
---|---|---|
committer | Gabriel A. Giovanini <mail@gabrielgio.me> | 2024-06-15 19:21:34 +0200 |
commit | 10925e006bf43edc79331fbe601e09a28c43df2b (patch) | |
tree | 815b6efd2197d478f57a425252e6b5d75ab643f6 /pkg | |
parent | ce5185f551b707fe8dd8db8b5cbffd46e96cacc0 (diff) | |
download | cerrado-10925e006bf43edc79331fbe601e09a28c43df2b.tar.gz cerrado-10925e006bf43edc79331fbe601e09a28c43df2b.tar.bz2 cerrado-10925e006bf43edc79331fbe601e09a28c43df2b.zip |
fix: Reduce some redirectsv0.0.5
Diffstat (limited to 'pkg')
-rw-r--r-- | pkg/handler/router.go | 4 |
1 files changed, 2 insertions, 2 deletions
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) |