From 90e006ef4137fe1da0185b2c1f5d4aca0247c9b1 Mon Sep 17 00:00:00 2001 From: Knut Ahlers Date: Sun, 12 Jan 2020 13:41:53 +0100 Subject: [PATCH] Fix: Use prefix for asset handling Signed-off-by: Knut Ahlers --- main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.go b/main.go index 18bae30..3bda8f2 100644 --- a/main.go +++ b/main.go @@ -74,7 +74,7 @@ func main() { log.WithField("version", version).Info("MediaTimeline Viewer started") - router.Handle("/", http.FileServer(http.Dir(cfg.Frontend))) + router.PathPrefix("/").Handler(http.FileServer(http.Dir(cfg.Frontend))) http.ListenAndServe(cfg.Listen, hhelp.NewHTTPLogHandler(router)) }