From 8c873c43de53405201677837d1165aac43b17dba Mon Sep 17 00:00:00 2001 From: Runxi Yu Date: Mon, 10 Feb 2025 08:58:21 +0800 Subject: [PATCH] main: Add {$} to path handlers that need it --- main.go | 2 +- diff --git a/main.go b/main.go index 2cebd3510c42bc03ca69fe7f2f43ad1b8ee9913f..8036dddff7721f558a6cf143e46b731fe0636d77 100644 --- a/main.go +++ b/main.go @@ -32,7 +32,7 @@ clog.Fatal(1, "Serving static: "+err.Error()) } 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) -- 2.48.1