Matt
05/10/2022, 10:52 AMgreetRoute() example (https://www.http4k.org/guide/reference/contracts/), how would I apply a filter before the greet(nameFromPath: String) handler is invoked?dave
05/10/2022, 11:15 AMfun greet(nameFromPath: String): HttpHandler = filter.then { request: Request ->
val age = ageQuery(request)
val sentMessage = stringBody(request)
Response(OK).with(stringBody of "hello $nameFromPath you are $age. You sent $sentMessage")
} @Matt
05/10/2022, 11:20 AM