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() {
|
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 {
|
||||||
|
|
Loading…
Reference in a new issue