From d486fd9322a3fe1cf514d9fcc80d8996d9f49979 Mon Sep 17 00:00:00 2001 From: Runxi Yu Date: Mon, 10 Feb 2025 13:47:32 +0800 Subject: *: project -> category --- main.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'main.go') diff --git a/main.go b/main.go index b144b52..18733c4 100644 --- a/main.go +++ b/main.go @@ -32,9 +32,9 @@ func main() { } http.HandleFunc("/{$}", handle_index) - http.HandleFunc("/{project_name}/{$}", handle_category_index) - http.HandleFunc("/{project_name}/repos/{repo_name}/{$}", handle_repo_index) - http.HandleFunc("/{project_name}/repos/{repo_name}/tree/{ref}/{rest...}", handle_repo_tree) + http.HandleFunc("/{category_name}/{$}", handle_category_index) + http.HandleFunc("/{category_name}/repos/{repo_name}/{$}", handle_repo_index) + http.HandleFunc("/{category_name}/repos/{repo_name}/tree/{ref}/{rest...}", handle_repo_tree) listener, err := net.Listen(config.HTTP.Net, config.HTTP.Addr) if err != nil { -- cgit v1.2.3