aboutsummaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
authorRunxi Yu <me@runxiyu.org>2025-02-10 08:58:21 +0800
committerRunxi Yu <me@runxiyu.org>2025-02-10 08:58:21 +0800
commit8c873c43de53405201677837d1165aac43b17dba (patch)
tree08d499a4da490882b85f9d13fbdb3a41f2695cb6 /main.go
parentrepo_tree: Initialize handler (copied over from index) (diff)
downloadforge-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.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/main.go b/main.go
index 2cebd35..8036ddd 100644
--- a/main.go
+++ b/main.go
@@ -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)