
- Set up project structure with FastAPI - Create SQLite database with SQLAlchemy - Implement Alembic for database migrations - Add CRUD operations for items resource - Create health endpoint - Update documentation generated with BackendIM... (backend.im)
8 lines
170 B
Python
8 lines
170 B
Python
from fastapi import APIRouter
|
|
|
|
router = APIRouter()
|
|
|
|
|
|
@router.get("/health", tags=["health"])
|
|
def health_check():
|
|
return {"status": "ok", "message": "API is running"} |