17 lines
366 B
Python
17 lines
366 B
Python
from flask import Flask
|
|
|
|
|
|
def create_app(config_object=None):
|
|
app = Flask(__name__)
|
|
|
|
if config_object:
|
|
if isinstance(config_object, dict):
|
|
app.config.update(config_object)
|
|
else:
|
|
app.config.from_object(config_object)
|
|
|
|
from app.api.health import bp as health_bp
|
|
|
|
app.register_blueprint(health_bp)
|
|
return app
|