diff --git a/main.go b/main.go index 5b39166..43b0d8c 100644 --- a/main.go +++ b/main.go @@ -198,8 +198,7 @@ func main() { ) // frontend routes handler - router.HandleFunc( - "/", + router.PathPrefix("/").HandlerFunc( func(w http.ResponseWriter, r *http.Request) { var indexBody, _ = ui.Asset("index.html") w.Write(indexBody)