title: How to pass parameters in request while routing (Server Side Swift using Vapor)
body: <p>I'm writing a web service using Vapor framework in Swift.</p>
  
  <p>In my app, I have User model. The following is how I route a get request for all users. </p>
  
  <pre><code>router.get("users") { request in
      return User.query(on: request).all()
  }
  </code></pre>
  
  <p>After running the server locally, to get the users, I can make a request like <code>localhost:8080/users</code></p>
  
  <p>Now, I want to add parameter to the request to get users above the given age. The request will look like <code>localhost:8080/users?above_age=25</code></p>
  
  <p>How to add the parameter in the request using the Vapor framework?
  I tried with the <a href="https://docs.vapor.codes/3.0/routing/overview/" rel="nofollow noreferrer">available docs</a> but I can't figure it. </p>
  
  <p>Since I am now starting with Server Side Swift using Vapor, any reference to resources using Vapor 3 will also be of help for other issues I might face. Thanks!</p>