1
0
mirror of https://github.com/Luzifer/mediatimeline.git synced 2024-09-16 14:38:27 +00:00

Fix: Use prefix for asset handling

Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
Knut Ahlers 2020-01-12 13:41:53 +01:00
parent f61051c212
commit 90e006ef41
Signed by: luzifer
GPG Key ID: DC2729FDD34BE99E

View File

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