autoapp.py
# -*- coding: utf-8 -*-"""Create an application instance."""from flask.helpers import get_debug_flag from crime_data.app import create_appfrom crime_data.settings import DevConfig, ProdConfig CONFIG = DevConfig if get_debug_flag() else ProdConfig app = create_app(CONFIG) # Add some static routing@app.route('/')def swagger_ui(): return app.send_static_file('swagger-ui.html') @app.route('/swagger.json')def swagger_json(): return app.send_static_file('swagger.json')