Package-level declarations

Functions

Link copied to clipboard
fun Routing.alternativeStatics(remotePath: String, basePackage: String?, index: String? = "index.html")

Sets up Routing to serve resources as static content. All resources inside basePackage will be accessible. 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.

Link copied to clipboard
expect fun Routing.statics(remotePath: String, basePackage: String?, index: String? = "index.html")

Sets up Routing to serve resources as static content. All resources inside basePackage will be accessible. 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.

actual fun Routing.statics(remotePath: String, basePackage: String?, index: String?)

Behaves just as staticResources(remotePath, basePackage, index)

actual fun Routing.statics(remotePath: String, basePackage: String?, index: String?)

Sets up Routing to serve resources as static content. All resources inside basePackage will be accessible. 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.