A middleware endpoint is an addressable route whose response is produced by a dedicated middleware pipeline. Endpoint routing selects it, exposes its metadata, and lets middleware such as authorization act before execution. section 31.1.5
A protected ping endpoint
Define MapPingPong("/ping") to construct the middleware pipeline, map it to /ping, and require authorization. Requests reaching the authorized endpoint receive the middleware's "pong" response.
