diff options
| author | Runxi Yu <me@runxiyu.org> | 2025-02-10 13:47:32 +0800 |
|---|---|---|
| committer | Runxi Yu <me@runxiyu.org> | 2025-02-10 13:47:32 +0800 |
| commit | d486fd9322a3fe1cf514d9fcc80d8996d9f49979 (patch) | |
| tree | b8e573d40effacf5b71bca5e020048b90e238b21 /main.go | |
| parent | category_index: Add a repo index for each category (diff) | |
| download | forge-d486fd9322a3fe1cf514d9fcc80d8996d9f49979.tar.gz forge-d486fd9322a3fe1cf514d9fcc80d8996d9f49979.tar.zst forge-d486fd9322a3fe1cf514d9fcc80d8996d9f49979.zip | |
*: project -> category
Diffstat (limited to '')
| -rw-r--r-- | main.go | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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 { |
