What the middleware does
API-key requests are only allowed on paths explicitly approved by `is_api_key_route`, which currently means the versioned quickhits and roadmaps prefixes.
After the key resolves, middleware validates the subscription, checks endpoint entitlements, attaches the resolved user to request state, and only then allows the route handler to run.