title: Sails.js custom route with same controller but different layouts
body: <p>today Im here to not just check good answers, but ask!
  I want to do the following using Sails.js and its routes.js:</p>
  
  <p><img src="https://i.stack.imgur.com/wZZ10.png" alt="My problem picture"></p>
  
  <p>What I want is to actually provide different layouts based on the type of user that is logged in. I know how to do that, but I dont want to write this on the <code>routes.js</code> file (because it is messy and I dont want to create controllers to do the job of the route itself):</p>
  
  <pre><code>'get /adminSpace/*' : {
      controller : 'adminSpace' //setting layout on controller
  },
  'get /userSpace/*' : {
      controller : 'userSpace' // //setting layout on controller
  }
  </code></pre>
  
  <p>A quick way, if possible, would be to write it like this:</p>
  
  <pre><code>'get /[user|admin]/projects/*' : {
      controller : 'project'
      locals: {
        layout: 'based_on_url'
  }}
  </code></pre>
  
  <p>Is this by any way possible?</p>