exclude

fun exclude(block: (Resource) -> Boolean)(source)

Configures resources that should not be served.

If this block returns true for Resource, the Application will respond with HttpStatusCode.Forbidden. Can be invoked multiple times. For files, Resource is a requested File. For resources, Resource is a URL to a requested resource.

Report a problem