20 lines
465 B
Python
20 lines
465 B
Python
from flask import Flask
|
|
|
|
from webapi.blueprints.cacu import cacu_bp
|
|
from webapi.blueprints.cama import cama_bp
|
|
from webapi.blueprints.tea import tea_bp
|
|
|
|
|
|
def create_app() -> Flask:
|
|
app = Flask(__name__)
|
|
|
|
@app.get("/health")
|
|
def health():
|
|
return {"status": "ok"}
|
|
|
|
app.register_blueprint(cacu_bp, url_prefix="/cacu")
|
|
app.register_blueprint(cama_bp, url_prefix="/cama")
|
|
app.register_blueprint(tea_bp, url_prefix="/tea")
|
|
|
|
return app
|