Files
mtusi2026lab2/app/routers/health.py
T
Polusikkkk 1bba3bcab0
Skeleton contracts / contracts (pull_request) Canceled after 0s
Refactor API into routers and shared modules
2026-10-16 18:45:36 +03:00

19 lines
306 B
Python

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