Apply middleware to route in Express
<p>I would like to apply a middleware to a route regardless of the type of request. Currently I have:</p>

<pre><code>router.route('/campaigns')
    .get(restrictTo('advertiser'), restrictTo('admin'), queries.getCampaigns)
    .post(restrictTo('advertiser'), restrictTo('admin'), queries.createCampaign);
</code></pre>

<p>And I would like something like:</p>

<pre><code>router.route('/campaigns', restrictTo('advertiser'), restrictTo('admin'))
    .get(queries.getCampaigns)
    .post(queries.createCampaign);
</code></pre>

<p>But this does not seem to work.</p>