routes: serve static content from /static
1 file changed, 1 insertion(+), 0 deletions(-)
changed files
M routes/handler.go → routes/handler.go
@@ -56,6 +56,7 @@ d.Write404(w) }) mux.HandleFunc("/", d.Index, "GET") + mux.HandleFunc("/static/:file", d.ServeStatic, "GET") mux.HandleFunc("/:name", dw.Multiplex, "GET", "POST") mux.HandleFunc("/:name/tree/:ref/...", d.RepoTree, "GET") mux.HandleFunc("/:name/blob/:ref/...", d.FileContent, "GET")