title: Organizing Rails files within app folder for api
body: <p>All setups I've found use the following folder structure</p>
  
  <pre><code>/app
   /controllers
     /api
      /v1
   /views
     /api
      /v1
   /models
  </code></pre>
  
  <p>This is ok, I guess. But I am trying to get a structure that looks like</p>
  
  <pre><code> /app
    /api
     /v1
      /controllers
      /views
     /v2
      /controllers
      /views
    /controllers #for non api stuff
    /views #for non api stuff
  </code></pre>
  
  <p>at the moment, my routes for the api are set as</p>
  
  <pre><code>scope module: :api, defaults: { format: 'json' } do
      namespace :v1 do
      ..
    end
  end
  </code></pre>
  
  <p>with controllers like <code>Api::V1::MyController &lt; ApplicationController</code></p>
  
  <p>Is there a way to have this kind of structure?</p>