12 lines
267 B
Python
12 lines
267 B
Python
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 |