major refactoring adding vendor and customer features
This commit is contained in:
18
app/api/v1/public/__init__.py
Normal file
18
app/api/v1/public/__init__.py
Normal file
@@ -0,0 +1,18 @@
|
||||
# app/api/v1/public/__init__.py
|
||||
"""
|
||||
Public API endpoints (customer-facing).
|
||||
"""
|
||||
|
||||
from fastapi import APIRouter
|
||||
from .vendors import auth, products, cart, orders
|
||||
|
||||
# Create public router
|
||||
router = APIRouter()
|
||||
|
||||
# Include all public sub-routers
|
||||
router.include_router(auth.router, prefix="/vendors", tags=["public-auth"])
|
||||
router.include_router(products.router, prefix="/vendors", tags=["public-products"])
|
||||
router.include_router(cart.router, prefix="/vendors", tags=["public-cart"])
|
||||
router.include_router(orders.router, prefix="/vendors", tags=["public-orders"])
|
||||
|
||||
__all__ = ["router"]
|
||||
Reference in New Issue
Block a user