staticResources
fun Route.staticResources(remotePath: String, basePackage: String?, index: String? = "index.html", block: StaticContentConfig<URL>.() -> Unit = {}): Route
Sets up RoutingRoot to serve resources as static content. All resources inside basePackage will be accessible recursively at "remotePath/path/to/resource". If requested resource doesn't exist and index is not null
, then response will be index resource in the requested package.
If requested resource doesn't exist and no index specified, response will be 404 Not Found.
You can use block for additional set up.