feat(taskflow): add core task API, storage persistence, csv export, stats page, and test coverage
This commit is contained in:
18
app/api/health.py
Normal file
18
app/api/health.py
Normal file
@@ -0,0 +1,18 @@
|
||||
from datetime import datetime, UTC
|
||||
|
||||
from fastapi import APIRouter
|
||||
|
||||
router = APIRouter()
|
||||
|
||||
|
||||
@router.get("/health")
|
||||
def health() -> dict:
|
||||
"""
|
||||
Health check endpoint.
|
||||
Returns server time in UTC ISO-8601 format.
|
||||
"""
|
||||
return {
|
||||
"status": "ok",
|
||||
"server_time": datetime.now(UTC).isoformat(),
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user