Hendre Page
09/17/2024, 5:57 PMsinglePageApplication
plugin:
routing {
singlePageApplication {
applicationRoute = "/admin"
filesPath = DirectoryManager.spaDir.absolutePath
}
}
In my index.html I then link to scripts like so:
<script src="/admin/skiko.js"></script>
A problem I am having is that files placed in the resources folder is not served on the /admin
endpoint but on the root eg:
<http://mydomain.com/composeResources/app.generated.resources/files/config.yaml>
How do I fix this so that composeResources
are also on the admin path?Hendre Page
09/17/2024, 7:09 PMsinglePageApplication {
applicationRoute = "/admin"
useResources = true
filesPath = "spa"
}
I add
<base href="/admin/">
to my head tag in my index.html
I then place my built files in commonMain/resources/spa