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:
parent
f61051c212
commit
90e006ef41
1 changed files with 1 additions and 1 deletions
2
main.go
2
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))
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue