withPathMapper

fun <R> withPathMapper(pathMapper: PathMapper, block: PathMapperScope.() -> R): R

Calls the block with a PathMapperScope as its receiver and returns its result.

Parameters

pathMapper

the path mapper to produce the necessary PathMapperScope.