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() {
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 {