forked from mtusi2026/mtusi2026lab3
15 lines
330 B
Python
15 lines
330 B
Python
from fastapi import APIRouter
|
|
from src.pydantic_valid.errors import Health
|
|
|
|
|
|
router = APIRouter()
|
|
|
|
|
|
@router.get("/live", response_model=Health, status_code=200)
|
|
async def healh_live():
|
|
return {"status": "ok"}
|
|
|
|
|
|
@router.get("/ready", response_model=Health, status_code=200)
|
|
async def health_ready():
|
|
return {"status": "ok"} |