default endpoints tested

This commit is contained in:
msramalho
2024-10-17 19:04:36 +01:00
parent 879c0cb879
commit aefa88d3b1
8 changed files with 125 additions and 23 deletions

View File

@@ -12,7 +12,6 @@ from security import get_user_auth, bearer_security
default_router = APIRouter()
@default_router.get("/")
async def home(request: Request):
# TODO: maybe split into 2 routes: one non authenticated and one authenticated for the groups info only
@@ -27,7 +26,7 @@ async def home(request: Request):
@default_router.get("/health")
async def health(request: Request):
async def health():
return JSONResponse({"status": "ok"})
@default_router.get("/groups", response_model=list[str])