
- 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
11 lines
232 B
Python
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"} |