title: How can I add a middleware in my route?
body: <p>In express I have something like this: </p>
  
  <pre><code>router.get('/foo', middlewareFunction, function (req, res) {
      res.send('YoYo');
  });
  </code></pre>
  
  <p>What is the form for a middleware in hapi? When I have this:</p>
  
  <pre><code>server.route({
      method: 'GET',
      path: '/foo',
      handler: function (request, reply) {
          reply('YoYo');
      }
  })
  </code></pre>