buildMiddleware method
The middleware this API needs, outermost first.
Exposed alongside buildServices so a hub hosting the API on a shared port installs the same request accounting and error envelope.
Implementation
List<Middleware> buildMiddleware() => [_countRequests(), apiErrorMapper()];