diff options
author | Runxi Yu <me@runxiyu.org> | 2025-02-09 02:16:39 +0800 |
---|---|---|
committer | Runxi Yu <me@runxiyu.org> | 2025-02-09 02:16:39 +0800 |
commit | f34697bc9d6c9e25ca04b36f1782de90aa31571f (patch) | |
tree | 3822bd1b3d41cc7a4843ad33b699cd93e42ca742 /main.go | |
parent | *: Add basic repo home with a README and recent commits display (diff) | |
download | forge-f34697bc9d6c9e25ca04b36f1782de90aa31571f.tar.gz forge-f34697bc9d6c9e25ca04b36f1782de90aa31571f.tar.zst forge-f34697bc9d6c9e25ca04b36f1782de90aa31571f.zip |
{main,resources}.go: Serve static/ properly
Diffstat (limited to 'main.go')
-rw-r--r-- | main.go | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -25,6 +25,11 @@ func main() { if err != nil { clog.Fatal(1, "Loading templates: "+err.Error()) } + + err = serve_static() + if err != nil { + clog.Fatal(1, "Serving static: "+err.Error()) + } http.HandleFunc("/{$}", handle_index) http.HandleFunc("/{project_name}/repos/{repo_name}/", handle_repo_index) |