all repos — elgit @ d083d5d72e4bf496b8152d14986818a5b63fe301

fork of legit: web frontend for git, written in go

routes: serve static content from /static

commit

d083d5d72e4bf496b8152d14986818a5b63fe301

parent

b833d2f73d5f4e56d7e082495c44d394d2361cbd

1 file changed, 1 insertion(+), 0 deletions(-)

changed files
M routes/handler.goroutes/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")