im having an issue with single page application if...
# ktor
d
im having an issue with single page application if i try to have it live any place but the root i get an error
Copy code
routing() {
        singlePageApplication {
            applicationRoute = "/admin"
            useResources = true
            filesPath = "admin_app"
            }
}
when i try to set a route i get this
Copy code
Admin_Dash_Compose.js:1          Failed to load resource: the server responded with a status of 404 (Not Found)
so i need to change my folder path to match or something? i tryed a few things but they didnt work out for me so far
a
What request are you trying to make?
d
this should be serving a static html page with java script file to show my web app.... https://ktor.io/docs/serving-spa.html
a
So you have the
admin_app
directory inside
resources
with
index.html
and other assets and when you access
/admin
in a browser it returns the 404 page?
d
if i go to dev tools the html file is there but the script is not found yes admin app is inside resources with index.html and the js file