title: How to separate flask routes to another modules
body: <p>I have hundreds of routes in my flask main module,</p>
  
  <p>I think it need to separate those hundred of routes from the main module.</p>
  
  <p>How to do it ?</p>
  
  <pre><code>#!/usr/bin/env python3
  # -*- coding: utf8 -*-
  from flask import request, url_for
  from flask import Flask, request, jsonify
  from flask_request_params import bind_request_params
  from flask import g
  import datetime
  import pandas as pd
  import pymongo
  from webargs import Arg
  from webargs.flaskparser import use_args, use_kwargs
  import yaml
  import time, functools
  from pdb import set_trace
  from pandas_helper import PandasHelper
  import errors
  from app_helper import *
  from release_schedule import ReleaseSchedule
  from mongo import Mongo
  
  
  @app.route('/next_release', methods=["GET"])
  @return_json
  def next_release():
      schedules = ReleaseSchedule.next_release(DB)
      return pd.DataFrame([sche for sche in schedules])
  
  ...
  @app.route('/last_release', methods=["GET"])
  </code></pre>