diff options
author | Runxi Yu <me@runxiyu.org> | 2025-02-10 08:58:21 +0800 |
---|---|---|
committer | Runxi Yu <me@runxiyu.org> | 2025-02-10 08:58:21 +0800 |
commit | 8c873c43de53405201677837d1165aac43b17dba (patch) | |
tree | 08d499a4da490882b85f9d13fbdb3a41f2695cb6 /main.go | |
parent | repo_tree: Initialize handler (copied over from index) (diff) | |
download | forge-8c873c43de53405201677837d1165aac43b17dba.tar.gz forge-8c873c43de53405201677837d1165aac43b17dba.tar.zst forge-8c873c43de53405201677837d1165aac43b17dba.zip |
main: Add {$} to path handlers that need it
Diffstat (limited to 'main.go')
-rw-r--r-- | main.go | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -32,7 +32,7 @@ func main() { } http.HandleFunc("/{$}", handle_index) - http.HandleFunc("/{project_name}/repos/{repo_name}/", handle_repo_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) |