Update path

This commit is contained in:
Daniel Mason 2021-03-24 17:24:53 +13:00
parent 3b0b479c4b
commit c6ef84cd5a

View File

@ -23,7 +23,7 @@ func HandleRequests() {
httpRouter.HandleFunc("/api/v1", serveEndpoint) httpRouter.HandleFunc("/api/v1", serveEndpoint)
httpRouter.HandleFunc("/api/v1/scrobble/jellyfin", serveEndpoint) httpRouter.HandleFunc("/api/v1/scrobble/jellyfin", serveEndpoint)
spa := spaHandler{staticPath: "build", indexPath: "index.html"} spa := spaHandler{staticPath: "web/build", indexPath: "index.html"}
httpRouter.PathPrefix("/").Handler(spa) httpRouter.PathPrefix("/").Handler(spa)
// fileServer := http.FileServer(http.Dir("web")) // fileServer := http.FileServer(http.Dir("web"))