spring-framework / org.springframework.web.reactive.function.server / RouterFunctionDsl / path

path

fun path(pattern: String, f: (ServerRequest) -> Mono<ServerResponse>): Unit

Route to the given handler function if the given path predicate applies.

See Also

RouterFunctions.route

fun path(pattern: String): RequestPredicate

Return a {@code RequestPredicate} that tests the request path against the given path pattern.

See Also

RequestPredicates.path