mirror of
https://github.com/SecurityBrewery/catalyst.git
synced 2025-12-06 15:22:47 +01:00
Fix static path (#289)
This commit is contained in:
@@ -27,7 +27,8 @@ func main() {
|
||||
}
|
||||
|
||||
fsys, _ := fs.Sub(ui.UI, "dist")
|
||||
theCatalyst.Server.Get("/ui/*", api.Static(fsys))
|
||||
staticHandlerFunc := http.HandlerFunc(api.VueStatic(fsys))
|
||||
theCatalyst.Server.Get("/ui/*", http.StripPrefix("/ui", staticHandlerFunc).ServeHTTP)
|
||||
|
||||
if err := http.ListenAndServe(fmt.Sprintf(":%d", config.Port), theCatalyst.Server); err != nil {
|
||||
log.Fatal(err)
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
module.exports = {
|
||||
publicPath: "/ui/",
|
||||
publicPath: "/ui/static/",
|
||||
transpileDependencies: ["vuetify", "@koumoul/vjsf"],
|
||||
pwa: {
|
||||
name: "Catalyst",
|
||||
|
||||
Reference in New Issue
Block a user