
- Created app/db/base.py with SQLAlchemy Base to avoid circular imports - Created app/db/session.py with SQLite database connection using /app/storage/db path - Created app/models/todo.py with Todo model including all required fields - Created app/schemas/todo.py with Pydantic schemas for request/response - Added requirements.txt with FastAPI, SQLAlchemy, and other dependencies - Created proper package structure with __init__.py files
8 lines
189 B
Python
8 lines
189 B
Python
from fastapi import APIRouter
|
|
|
|
from app.api.endpoints import todos
|
|
|
|
api_router = APIRouter()
|
|
|
|
# Include todos router
|
|
api_router.include_router(todos.router, prefix="/todos", tags=["todos"]) |