
- Set up project structure and FastAPI application - Create database models for users, products, and inventory - Configure SQLAlchemy and Alembic for database management - Implement JWT authentication - Create API endpoints for user, product, and inventory management - Add admin-only routes and authorization middleware - Add health check endpoint - Update README with documentation - Lint and fix code issues
14 lines
541 B
Python
14 lines
541 B
Python
from fastapi import APIRouter
|
|
|
|
from app.core.config import settings
|
|
|
|
# Import endpoints
|
|
from .endpoints import auth, inventory, products, users
|
|
|
|
# Create main API router
|
|
api_router = APIRouter(prefix=settings.API_V1_STR)
|
|
|
|
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(inventory.router, prefix="/inventory", tags=["inventory"]) |