quivr/backend/routes/misc_routes.py
2023-08-20 23:20:57 +02:00

17 lines
290 B
Python

from fastapi import APIRouter
misc_router = APIRouter()
@misc_router.get("/")
async def root():
"""
Root endpoint to check the status of the API.
"""
return {"status": "OK"}
@misc_router.get("/healthz", tags=["Health"])
async def healthz():
return {"status": "ok"}