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.

Parameters

subPath - slash-delimited web resources root path (relative to webapp directory)