ktor-server-servlet / io.ktor.server.servlet / io.ktor.routing.Route

Extensions for io.ktor.routing.Route

webResources

fun Route.webResources(subPath: String = "/", configure: WebResourcesConfig.() -> Unit = {}): Unit

Serve web resources (usually a directory named webapp containing WEB-INF/web.xml). Note that WEB-INF directory itself is not served by default.