From d083d5d72e4bf496b8152d14986818a5b63fe301 Mon Sep 17 00:00:00 2001 From: Anirudh Oppiliappan Date: Sat, 17 Dec 2022 12:45:21 +0530 Subject: routes: serve static content from /static --- routes/handler.go | 1 + 1 file changed, 1 insertion(+) (limited to 'routes/handler.go') diff --git a/routes/handler.go b/routes/handler.go index 7d9266b..d230773 100644 --- a/routes/handler.go +++ b/routes/handler.go @@ -56,6 +56,7 @@ func Handlers(c *config.Config) *flow.Mux { }) 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") -- cgit