I am trying to serve a compose multiplatform application via Ktor using the
singlePageApplication
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?