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")
|
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 {
|
if err := http.ListenAndServe(fmt.Sprintf(":%d", config.Port), theCatalyst.Server); err != nil {
|
||||||
log.Fatal(err)
|
log.Fatal(err)
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
module.exports = {
|
module.exports = {
|
||||||
publicPath: "/ui/",
|
publicPath: "/ui/static/",
|
||||||
transpileDependencies: ["vuetify", "@koumoul/vjsf"],
|
transpileDependencies: ["vuetify", "@koumoul/vjsf"],
|
||||||
pwa: {
|
pwa: {
|
||||||
name: "Catalyst",
|
name: "Catalyst",
|
||||||
|
|||||||
Reference in New Issue
Block a user