voicepeak_api/app/__init__.py

12 lines
267 B
Python
Raw Normal View History

from flask import Flask
from config import Config
def create_app(config_class=Config):
app = Flask(__name__)
app.config.from_object(config_class)
config_class.init_app(app)
from app import routes
app.register_blueprint(routes.bp)
return app