Automated Action 01586fdd64 Set up basic FastAPI project structure for todo app
- Created main.py with FastAPI app, CORS configuration, and basic endpoints
- Added requirements.txt with necessary dependencies
- Set up app directory structure with proper organization
- Implemented base URL endpoint with app info and documentation links
- Added health check endpoint that reports application and database status
- Configured CORS to allow all origins
- Set up Alembic for database migrations with proper SQLite configuration
- Updated README with comprehensive project documentation
2025-06-20 23:19:40 +00:00

9 lines
262 B
Python

from fastapi import APIRouter
from app.api.endpoints import todos
from app.models.todo import Todo # Import to ensure model is registered
api_router = APIRouter()
# Include todos router
api_router.include_router(todos.router, prefix="/todos", tags=["todos"])