Automated Action a4ffe78f61 Create REST API with FastAPI and SQLAlchemy
- 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)
2025-05-14 10:26:10 +00:00

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"}