13 lines
281 B
Python
13 lines
281 B
Python
from fastapi import APIRouter
|
|
from datetime import datetime, timezone
|
|
|
|
router = APIRouter()
|
|
|
|
|
|
@router.get("/health")
|
|
async def health_check():
|
|
return {
|
|
"status": "ok",
|
|
"service": "DemoBMS API",
|
|
"timestamp": datetime.now(timezone.utc).isoformat(),
|
|
}
|