aboutsummaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
authorRunxi Yu <me@runxiyu.org>2025-02-10 08:57:33 +0800
committerRunxi Yu <me@runxiyu.org>2025-02-10 08:57:33 +0800
commit6b0a78df8bb6071534848502003446b57ac515f4 (patch)
tree2a473447a26b856acb207a3e7c6452cd657d052c /main.go
parentrepo_index: Use the first line of the commit message (diff)
downloadforge-6b0a78df8bb6071534848502003446b57ac515f4.tar.gz
forge-6b0a78df8bb6071534848502003446b57ac515f4.tar.zst
forge-6b0a78df8bb6071534848502003446b57ac515f4.zip
repo_tree: Initialize handler (copied over from index)
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 d3d1fbe..2cebd35 100644
--- a/main.go
+++ b/main.go
@@ -33,6 +33,7 @@ func main() {
http.HandleFunc("/{$}", handle_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)
if err != nil {