diff options
author | Runxi Yu <me@runxiyu.org> | 2025-02-10 08:57:33 +0800 |
---|---|---|
committer | Runxi Yu <me@runxiyu.org> | 2025-02-10 08:57:33 +0800 |
commit | 6b0a78df8bb6071534848502003446b57ac515f4 (patch) | |
tree | 2a473447a26b856acb207a3e7c6452cd657d052c /main.go | |
parent | repo_index: Use the first line of the commit message (diff) | |
download | forge-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.go | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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 { |