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:
+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, 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)
|
||||
|
||||
Reference in New Issue
Block a user