From 6b0a78df8bb6071534848502003446b57ac515f4 Mon Sep 17 00:00:00 2001 From: Runxi Yu Date: Mon, 10 Feb 2025 08:57:33 +0800 Subject: repo_tree: Initialize handler (copied over from index) --- main.go | 1 + 1 file changed, 1 insertion(+) (limited to 'main.go') 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 { -- cgit v1.2.3