
Create a complete e-commerce application with the following features: - User authentication and authorization - Product and category management - Shopping cart functionality - Order processing - Database migrations with Alembic - Comprehensive documentation
19 lines
633 B
Python
19 lines
633 B
Python
from fastapi import APIRouter
|
|
|
|
from app.api.endpoints import (
|
|
auth,
|
|
users,
|
|
products,
|
|
categories,
|
|
cart,
|
|
orders,
|
|
)
|
|
|
|
api_router = APIRouter()
|
|
|
|
api_router.include_router(auth.router, prefix="/auth", tags=["Authentication"])
|
|
api_router.include_router(users.router, prefix="/users", tags=["Users"])
|
|
api_router.include_router(products.router, prefix="/products", tags=["Products"])
|
|
api_router.include_router(categories.router, prefix="/categories", tags=["Categories"])
|
|
api_router.include_router(cart.router, prefix="/cart", tags=["Cart"])
|
|
api_router.include_router(orders.router, prefix="/orders", tags=["Orders"]) |