Fix formatting

This commit is contained in:
pathmapper
2020-07-23 20:25:24 +02:00
parent 4661677387
commit b7ef0943f4
+4 -4
View File
@@ -62,10 +62,10 @@ func main() {
} }
staticDir := c.String("static") staticDir := c.String("static")
if staticDir != "" { if staticDir != "" {
h := http.StripPrefix("/static/", http.FileServer(http.Dir(staticDir))) h := http.StripPrefix("/static/", http.FileServer(http.Dir(staticDir)))
router.PathPrefix("/static/").Handler(h) router.PathPrefix("/static/").Handler(h)
} }
router.PathPrefix("/").Handler(http.StripPrefix("/", gui)) router.PathPrefix("/").Handler(http.StripPrefix("/", gui))
loggedRouter := handlers.LoggingHandler(os.Stdout, router) loggedRouter := handlers.LoggingHandler(os.Stdout, router)