Is there a way to split up routes in a way like… (...
# http4k
n
Is there a way to split up routes in a way like… (pseudo-code)
Copy code
val 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)