Source types, connection test, server folders, uploads and OAuth sign-in for the Conectar dialog; sign-in for the web app with fastapi-users, the API left open

This commit is contained in:
Roberto Treviño
2026-11-28 09:29:59 -06:00
parent d3f7aeb537
commit b515746406
10 changed files with 749 additions and 26 deletions
+4 -1
View File
@@ -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, fhir, ingest, models, review, runs
from webapi import eeg, fhir, ingest, models, review, runs, sources, users
from webapi.auth import caller
app = FastAPI(
@@ -11,13 +11,16 @@ 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(models.router)
app.include_router(eeg.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)