1
0
Fork 0
mirror of https://github.com/Luzifer/mediatimeline.git synced 2024-11-08 06:40:06 +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))
}