__init__.py 273 B

123456789101112
  1. from flask import Flask
  2. from flask_cors import CORS
  3. def create_app(test_config=None):
  4. # create and configure the app
  5. app = Flask(__name__, instance_relative_config=True)
  6. CORS(app)
  7. from . import routes
  8. app.register_blueprint(routes.bp)
  9. return app