spring-framework
5.3.39

# resources

fun resources(path: String, location: Resource)
Content copied to clipboard

Route requests that match the given pattern to resources relative to the given root location.

## See also

org.springframework.web.reactive.function.server.RouterFunctions
fun resources(lookupFunction: (ServerRequest) -> Mono<Resource>)
Content copied to clipboard

Route to resources using the provided lookup function. If the lookup function provides a Resource for the given request, it will be it will be exposed using a HandlerFunction that handles GET, HEAD, and OPTIONS requests.