title: LoopBack: How to define middleware intercepting REST API calls ONLY?
body: <p>If I register middleware in <em>server/middleware.json</em>, this middleware is executed for each request, regardless of its kind. But for authorization checks, I need execution <strong>only</strong> for calls of <em>API paths</em>. How can I achieve this?</p>