返回 VideoClaw
health.py
1 import time
2
3 from fastapi import APIRouter
4
5 router = APIRouter(tags=["Health"])
6
7
8 @router.get("/api/health")
9 async def health_check():
10 return {"status": "ok", "timestamp": time.time()}
11
11 lines PYTHON