title: Elixir Phoenix handle get request with parameters
body: <p>I have defined a router which looks like this:</p>
  
  <pre><code>get("/api/cars", CarController, :cars)
  </code></pre>
  
  <p>In this way inside the <code>cars</code> function in <code>CarController</code> I am parsing all there <code>params</code> that are passed with the <code>get</code> request. My <code>cars</code> function now is using a <code>case</code> statement so if there is some parameter provided, do something. My question is how I can parse a parameter name in the router, for example if I receive a get request like this <code>/api/cars?type=coupe</code>
  how can I match that on the <code>get</code> router since I want to handle it separately instead of using the <code>cars</code> function.</p>