Merge origin/rebuild into parity/T1-merge (WebApi)
- main.py: both routers sets (execution, preview from tea/parity; sources, users from
rebuild).
- runs.py: tea/parity's cancel, history and execution config; rebuild's /terminate is the
same action and is not kept twice.
- eeg.py: tea/parity's (the record reads per-child FHIR resources, not rebuild's EEG
detail with zones and relation).
- fhir.py: tea/parity's patient rows with TEA filters, plus rebuild's name/identifier
search applied to whatever rows the request selects.
- models.py: tea/parity's endpoints; /models/{domain} returns rebuild's name + title.
- tests: P7 deletions kept (test_cacu, test_cama, test_conectar, test_synthea*, test_tea);
test_webapp keeps tea/parity's runner, now with the first administrator (sign-in).
This commit is contained in:
+4
-1
@@ -3,7 +3,7 @@ from fastapi.exception_handlers import http_exception_handler
|
||||
from starlette.exceptions import HTTPException
|
||||
|
||||
from core.domains import Domain
|
||||
from webapi import eeg, execution, fhir, ingest, models, preview, review, runs
|
||||
from webapi import eeg, execution, fhir, ingest, models, preview, review, runs, sources, users
|
||||
from webapi.auth import caller
|
||||
|
||||
app = FastAPI(
|
||||
@@ -11,8 +11,10 @@ app = FastAPI(
|
||||
version="0.0.0",
|
||||
dependencies=[Depends(caller)], # every route; where authentication will go
|
||||
generate_unique_id_function=lambda route: route.name, # clean names in the generated client
|
||||
lifespan=users.lifespan,
|
||||
)
|
||||
app.include_router(ingest.router)
|
||||
app.include_router(sources.router)
|
||||
app.include_router(review.router)
|
||||
app.include_router(runs.router)
|
||||
app.include_router(execution.router)
|
||||
@@ -20,6 +22,7 @@ app.include_router(models.router)
|
||||
app.include_router(eeg.router)
|
||||
app.include_router(preview.router)
|
||||
app.include_router(fhir.router)
|
||||
app.include_router(users.router) # sign-in for the web app; no route requires it
|
||||
|
||||
|
||||
@app.exception_handler(HTTPException)
|
||||
|
||||
Reference in New Issue
Block a user