From 8c873c43de53405201677837d1165aac43b17dba Mon Sep 17 00:00:00 2001 From: Runxi Yu Date: Mon, 10 Feb 2025 08:58:21 +0800 Subject: main: Add {$} to path handlers that need it --- main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'main.go') diff --git a/main.go b/main.go index 2cebd35..8036ddd 100644 --- a/main.go +++ b/main.go @@ -32,7 +32,7 @@ func main() { } http.HandleFunc("/{$}", handle_index) - http.HandleFunc("/{project_name}/repos/{repo_name}/", handle_repo_index) + http.HandleFunc("/{project_name}/repos/{repo_name}/{$}", handle_repo_index) http.HandleFunc("/{project_name}/repos/{repo_name}/tree/{ref}/{rest...}", handle_repo_tree) listener, err := net.Listen(config.HTTP.Net, config.HTTP.Addr) -- cgit v1.2.3