19 lines
372 B
Python
19 lines
372 B
Python
|
|
"""API routes."""
|
||
|
|
|
||
|
|
from datetime import datetime, timezone
|
||
|
|
|
||
|
|
from fastapi import APIRouter
|
||
|
|
|
||
|
|
router = APIRouter(prefix="/api")
|
||
|
|
|
||
|
|
|
||
|
|
@router.get("/health")
|
||
|
|
async def health():
|
||
|
|
"""Health check endpoint."""
|
||
|
|
return {
|
||
|
|
"status": "healthy",
|
||
|
|
"service": "micro-api",
|
||
|
|
"version": "0.1.0",
|
||
|
|
"timestamp": datetime.now(timezone.utc).isoformat(),
|
||
|
|
}
|