Nezteb
05/16/2019, 1:39 AMval app = ...
.then(
HttpHandler {
// always gives Response(OK)
"/health" bind Method.GET to healthEndpoint()
}
)
.then(myCoolFilter)
.then(anotherFilter)
.then(theRestOfMyHttpHandlersAndRoutes)
I have a very basic health endpoint, but I want most of my filters to not apply to the health endpoint (stuff like logging, checking authentication, etc)