title: How to use `pre` in route handler - hapi.js
body: <p>I have to call a method using pre in a route. I am using <a href="https://www.npmjs.com/package/hapi-request" rel="noreferrer">hapi-request</a>. I tried to use pre in the route declaration, but I got an error. What am I missing?</p>
  
  <p><strong>My original route:</strong>  </p>
  
  <pre><code>server.route({ 
      method: 'POST', 
      path: '/searchUser',  
      config: User.searchUser
  })
  </code></pre>
  
  <p><strong>Using Pre</strong></p>
  
  <pre><code>server.route({ 
      method: 'POST', 
      path: '/searchUser',  
      pre: validateUser, 
      config: User.searchUser
  })
  </code></pre>
  
  <p><strong>Error</strong>  </p>
  
  <pre><code>Error: Invalid route options (/searchUser) {
    "method": "POST",
    "path": "/searchUser",
    "config": {}
  }
  ←[31m
  [1] "pre" is not allowed←[0m   
  </code></pre>