21 lines
370 B
Python
21 lines
370 B
Python
from __future__ import annotations
|
|
|
|
from fastapi import APIRouter
|
|
|
|
from app.db import check_db
|
|
from app.storage import check_storage
|
|
|
|
router = APIRouter()
|
|
|
|
|
|
@router.get("/health/live")
|
|
async def health_live():
|
|
return {"status": "ok"}
|
|
|
|
|
|
@router.get("/health/ready")
|
|
async def health_ready():
|
|
await check_db()
|
|
await check_storage()
|
|
return {"status": "ok"}
|