webui: fix ServeSPA to use StripPrefix so FileServer finds assets
This commit is contained in:
@@ -28,7 +28,7 @@ func ServeSPA() http.Handler {
|
|||||||
w.Write(data)
|
w.Write(data)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
http.FileServer(http.FS(DistFS)).ServeHTTP(w, r)
|
http.StripPrefix("/", http.FileServer(http.FS(DistFS))).ServeHTTP(w, r)
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user