diff options
Diffstat (limited to 'cmd/web/routes.go')
| -rw-r--r-- | cmd/web/routes.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cmd/web/routes.go b/cmd/web/routes.go index 6d0e529..12bb807 100644 --- a/cmd/web/routes.go +++ b/cmd/web/routes.go @@ -9,7 +9,7 @@ import ( func (a *App) ServeHTTP(w http.ResponseWriter, r *http.Request) { rtr := mux.NewRouter() - rtr.PathPrefix("/api/v1").Handler(a.HandleAPIv1()) + // rtr.PathPrefix("/api/v1").Handler(a.HandleAPIv1()) rtr.Handle("/quit", UnauthorizedIfNotLocal(http.HandlerFunc(HandleQuit))) rtr.Handle("/setLib", UnauthorizedIfNotLocal(http.HandlerFunc(a.HandleSetLib))) @@ -20,7 +20,7 @@ func (a *App) ServeHTTP(w http.ResponseWriter, r *http.Request) { rtr.HandleFunc("/steam-export-web.exe", ServeSelf) rtr.HandleFunc("/download/{game}", a.HandleDownload) rtr.PathPrefix("/static").Handler( - http.FileServer(http.FS(embeddedStatic))) + http.FileServer(http.FS(a.staticFS))) rtr.HandleFunc("/", a.HandleIndex) rtr.ServeHTTP(w, r) |
