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)) }