beforeEach
fun Route.beforeEach(before: suspend PipelineContext<Unit, ApplicationCall>.() -> Unit, callback: Route.() -> Unit): Route(source)
Allows logic to be executed before any nested route endpoint handlers.
This is intended for use with the WebSocket feature where websockets do not allow an opportunity to call an codes.laurence.warden.enforce.EnforcementPoint before the websocket connects.