singlePageApplication

fun Routing.singlePageApplication(configBuilder: SPAConfig.() -> Unit = {})

Serves a single-page application. You can learn more from Serving single-page applications.

A basic configuration for the application served from the filesPath folder with index.html as a default file:

application {
routing {
singlePageApplication {
filesPath = "application/project_path"
}
}
}