
- Create Category and Tag models - Create TodoTag association table - Add category_id to Todo model - Create Alembic migration for new tables - Create schemas for Category and Tag - Update Todo schemas to include Category and Tags - Create CRUD operations for Categories and Tags - Update Todo CRUD operations to handle categories and tags - Create API endpoints for categories and tags - Update Todo API endpoints with category and tag filtering - Update documentation
11 lines
580 B
Python
11 lines
580 B
Python
from fastapi import APIRouter
|
|
|
|
from app.api.v1.endpoints import admin, auth, categories, tags, todos, users
|
|
|
|
api_router = APIRouter()
|
|
api_router.include_router(auth.router, prefix="/auth", tags=["auth"])
|
|
api_router.include_router(users.router, prefix="/users", tags=["users"])
|
|
api_router.include_router(todos.router, prefix="/todos", tags=["todos"])
|
|
api_router.include_router(categories.router, prefix="/categories", tags=["categories"])
|
|
api_router.include_router(tags.router, prefix="/tags", tags=["tags"])
|
|
api_router.include_router(admin.router, prefix="/admin", tags=["admin"]) |