title: Flask app with "submodules"
body: <p>I am trying to develop an API with different "submodules". For example there is one called todo and another one called newsletter.</p>
  
  <p>What I want to do is, I'd like to be able to run the modules themselves during development and I'd like to be able to run the whole API with it's submodules on the server.</p>
  
  <p>My current folder structure looks like that</p>
  
  <pre><code>api
    - api
      - todo
        - todo
          - __init__.py
          - routes.py
          - utils.py
          - ...
        - README.md
        - requirements.txt
      - newsletter
        - ...
    - run.py
  </code></pre>
  
  <hr>
  
  <p>The aim is to be able to run this during development:</p>
  
  <pre><code>cd api/todo/todo
  python3 run.py
  </code></pre>
  
  <p>And this on the server</p>
  
  <pre><code>python3 run.py
  </code></pre>
  
  <hr>
  
  <p>The routes should be relative:</p>
  
  <p>During the production the path for one submodule should be like that</p>
  
  <pre><code>/add
  </code></pre>
  
  <p>But on the server they should always include the name of submodule</p>
  
  <pre><code>/todo/add
  </code></pre>
  
  <hr>
  
  <p>Moreover I'd like to be able to put the code of every submodule in one GitHub repository, so that other persons will be able to run them on themselves.</p>
  
  <p>I am currently stuck on importing the modules. Can I fix the path <em>problem</em> by using Flasks Blueprints?</p>
  
  <p>I would appreciate any help very much!</p>