Update deprecated method calls in front end

This commit is contained in:
William Brawner 2024-03-04 15:14:07 -07:00
parent 0fe4072a6e
commit 8a128a1104

View file

@ -8,10 +8,7 @@ import io.ktor.server.routing.*
fun Application.webRoutes() { fun Application.webRoutes() {
routing { routing {
static { staticResources("/", "web")
resources("web")
default("index.html")
}
intercept(ApplicationCallPipeline.Setup) { intercept(ApplicationCallPipeline.Setup) {
if (!call.request.path().startsWith("/api") && !call.request.path().matches(Regex(".*\\.\\w+$"))) { if (!call.request.path().startsWith("/api") && !call.request.path().matches(Regex(".*\\.\\w+$"))) {
call.resolveResource("web/index.html")?.let { call.resolveResource("web/index.html")?.let {