wording fixes
This commit is contained in:
@@ -31,6 +31,9 @@ class IsoJSONProvider(DefaultJSONProvider):
|
||||
def create_app() -> Flask:
|
||||
app = Flask(__name__)
|
||||
app.json = IsoJSONProvider(app)
|
||||
from webapi.cama_runtime import configure_cama_cohort
|
||||
|
||||
configure_cama_cohort(app)
|
||||
# File sources travel inside the request; cap them per request.
|
||||
app.config["MAX_CONTENT_LENGTH"] = int(os.environ.get("WEBAPI_MAX_UPLOAD_MB", "200")) * 1024 * 1024
|
||||
|
||||
@@ -93,8 +96,17 @@ def create_app() -> Flask:
|
||||
from persistance.db import get_cacu_session
|
||||
|
||||
from webapi.patient_risk import patient_risk_blueprint
|
||||
from webapi.risk_batches import risk_batches_blueprint
|
||||
|
||||
app.register_blueprint(follow_up_blueprint(get_cacu_session), url_prefix="/cacu")
|
||||
app.register_blueprint(patient_risk_blueprint(cacu_repositories), url_prefix="/cacu")
|
||||
app.register_blueprint(risk_batches_blueprint(cacu_repositories), url_prefix="/cacu")
|
||||
|
||||
# CaMa's follow-up list and analysis selection, over the breast screening cohort `configure_cama_cohort` reads.
|
||||
from webapi.cama_analysis import analysis as cama_analysis_bp
|
||||
from webapi.seguimiento_cama import blueprint_seguimiento_cama
|
||||
|
||||
app.register_blueprint(blueprint_seguimiento_cama(), url_prefix="/cama")
|
||||
app.register_blueprint(cama_analysis_bp, url_prefix="/cama")
|
||||
|
||||
return app
|
||||
|
||||
Reference in New Issue
Block a user