
- 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
9 lines
262 B
Python
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"]) |