diff options
author | Runxi Yu <me@runxiyu.org> | 2025-02-10 21:17:50 +0800 |
---|---|---|
committer | Runxi Yu <me@runxiyu.org> | 2025-02-10 21:17:50 +0800 |
commit | 7fb303be23cfff5ac52684310184576d34099a3e (patch) | |
tree | 4e45127da40eef29cd33479fd1bbd85884b3bc74 /main.go | |
parent | template_funcs: base_name should use path, not filepath (diff) | |
download | forge-7fb303be23cfff5ac52684310184576d34099a3e.tar.gz forge-7fb303be23cfff5ac52684310184576d34099a3e.tar.zst forge-7fb303be23cfff5ac52684310184576d34099a3e.zip |
resources: Serve source and static properly
... except that it won't run because of URL conflicts for now
Diffstat (limited to 'main.go')
-rw-r--r-- | main.go | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -31,6 +31,8 @@ func main() { clog.Fatal(1, "Serving static: "+err.Error()) } + serve_source() + http.HandleFunc("/{$}", handle_index) http.HandleFunc("/{category_name}/repos/{$}", handle_category_repos) http.HandleFunc("/{category_name}/repos/{repo_name}/{$}", handle_repo_index) |