todoapp-xht8o2/app/api/v1/health.py
Automated Action fd0d96616b Initial setup of FastAPI Todo Application
- Set up project structure
- Create FastAPI app with SQLite database
- Implement Todo API with CRUD operations
- Set up Alembic for database migrations
- Add health endpoint
- Create README with documentation
2025-05-27 10:47:50 +00:00

11 lines
232 B
Python

from fastapi import APIRouter, status
router = APIRouter()
@router.get("/health", status_code=status.HTTP_200_OK)
def health_check():
"""
Health check endpoint to verify API is running.
"""
return {"status": "ok"}