diff --git a/internal/httpserver/router.go b/internal/httpserver/router.go index af31fef..9b658f1 100644 --- a/internal/httpserver/router.go +++ b/internal/httpserver/router.go @@ -1,6 +1,7 @@ package httpserver import ( + "io/fs" "net/http" "provisioning/internal/api" @@ -25,7 +26,8 @@ func NewRouter(d Deps) http.Handler { r.Use(middleware.Logger) // Static files - r.Handle("/static/*", http.StripPrefix("/static/", http.FileServer(http.FS(web.Static)))) + staticFS, _ := fs.Sub(web.Static, "static") + r.Handle("/static/*", http.StripPrefix("/static/", http.FileServer(http.FS(staticFS)))) // SSE r.Get("/events", d.Hub.ServeSSE)