Update deprecated method calls in front end
This commit is contained in:
parent
0fe4072a6e
commit
8a128a1104
1 changed files with 1 additions and 4 deletions
|
@ -8,10 +8,7 @@ import io.ktor.server.routing.*
|
|||
|
||||
fun Application.webRoutes() {
|
||||
routing {
|
||||
static {
|
||||
resources("web")
|
||||
default("index.html")
|
||||
}
|
||||
staticResources("/", "web")
|
||||
intercept(ApplicationCallPipeline.Setup) {
|
||||
if (!call.request.path().startsWith("/api") && !call.request.path().matches(Regex(".*\\.\\w+$"))) {
|
||||
call.resolveResource("web/index.html")?.let {
|
||||
|
|
Loading…
Reference in a new issue