feat(infrastructure): add / endpoint for liveness check

This commit is contained in:
2025-09-24 00:27:12 +02:00
parent 2b7e16c4ea
commit 7446828247

View File

@@ -44,6 +44,12 @@ app.include_router(
) )
# Liveness/root endpoint
@app.get("/", include_in_schema=False)
async def root():
return {"status": "ok"}
@app.get("/authenticated-route") @app.get("/authenticated-route")
async def authenticated_route(user: User = Depends(current_active_verified_user)): async def authenticated_route(user: User = Depends(current_active_verified_user)):
return {"message": f"Hello {user.email}!"} return {"message": f"Hello {user.email}!"}