Serve CaCu instance and episode publications with benchmark notes
This commit is contained in:
@@ -102,6 +102,12 @@ def create_app() -> Flask:
|
||||
from webapi.risk_batches import risk_batches_blueprint
|
||||
|
||||
app.register_blueprint(follow_up_blueprint(get_cacu_session), url_prefix="/cacu")
|
||||
if publication := os.environ.get("CACU_SIMULATED_INSTANCE_PUBLICATION"):
|
||||
from pathlib import Path
|
||||
|
||||
from webapi.follow_up.instances import instance_follow_up_blueprint
|
||||
|
||||
app.register_blueprint(instance_follow_up_blueprint(Path(publication)), url_prefix="/cacu")
|
||||
app.register_blueprint(cama_follow_up_blueprint(get_cama_session), url_prefix="/cama")
|
||||
app.register_blueprint(cama_analysis_blueprint(get_cama_session), url_prefix="/cama/analisis")
|
||||
app.register_blueprint(risk_batches_blueprint(cacu_repositories), url_prefix="/cacu")
|
||||
|
||||
Reference in New Issue
Block a user