aboutsummaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
authorRunxi Yu <me@runxiyu.org>2025-02-10 13:46:50 +0800
committerRunxi Yu <me@runxiyu.org>2025-02-10 13:46:50 +0800
commit0a5f821f78425d97c0797803e57aa2c2d6f982da (patch)
tree1047018864276e8b99c4375aa436ce1ff162789c /main.go
parent*.go: Linting (diff)
downloadforge-0a5f821f78425d97c0797803e57aa2c2d6f982da.tar.gz
forge-0a5f821f78425d97c0797803e57aa2c2d6f982da.tar.zst
forge-0a5f821f78425d97c0797803e57aa2c2d6f982da.zip
category_index: Add a repo index for each category
Diffstat (limited to 'main.go')
-rw-r--r--main.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/main.go b/main.go
index 8f9482d..b144b52 100644
--- a/main.go
+++ b/main.go
@@ -32,6 +32,7 @@ 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)