title: How to use a route specific middleware of express in Nestjs?
body: <p>I'm trying to use this library (<a href="https://github.com/keycloak/keycloak-nodejs-connect" rel="noreferrer">keycloak-connect</a>) for authentication and authorization. It has a global middleware that can be directly used by <code>app.use()</code> method or by wrapping a nestjs middlewareclass around it. But how to use the route specific express middleware which is used to protect individual routes?.</p>
  
  <p>Example usage in plain express app</p>
  
  <pre><code>app.get( '/protected', keycloak.protect('adminRole'), handler );
  </code></pre>
  
  <p>The protect method returns a plain express middleware with signature <code>function(req, res, next)</code></p>