exclude

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

Configures resources that should not be served. If this block returns true for Resource, 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.