
- Setup project structure and FastAPI application - Create SQLite database with SQLAlchemy - Implement user authentication with JWT - Create task and user models - Add CRUD operations for tasks and users - Configure Alembic for database migrations - Implement API endpoints for task management - Add error handling and validation - Configure CORS middleware - Create health check endpoint - Add comprehensive documentation
13 lines
323 B
Python
13 lines
323 B
Python
from fastapi import APIRouter, Depends
|
|
from sqlalchemy.ext.asyncio import AsyncSession
|
|
|
|
from app.db.session import get_db
|
|
|
|
router = APIRouter()
|
|
|
|
@router.get("")
|
|
async def health_check(db: AsyncSession = Depends(get_db)):
|
|
"""
|
|
Health check endpoint
|
|
"""
|
|
return {"status": "ok", "message": "Service is running"} |