title: Laravel. How to define route, based on the Content-Type
body: <p>Is it possible to create a route, that on the same URL calls different actions in different controllers based on the <code>Content-Type</code> header?</p>
  
  <p>I do NOT need this for testing purposes. I need something to use in the <code>api.php</code> file.</p>