16 lines
293 B
Python
16 lines
293 B
Python
from fastapi import APIRouter
|
|
|
|
from ..schemas.common import Health
|
|
|
|
router = APIRouter(prefix='/health')
|
|
|
|
|
|
@router.get("/live", response_model=Health)
|
|
def health_live():
|
|
return {"status": "ok"}
|
|
|
|
|
|
@router.get("/ready", response_model=Health)
|
|
def health_ready():
|
|
return {"status": "ok"}
|