Bug fix in init files
This commit is contained in:
36
app/api/v1/vendor/__init__.py
vendored
36
app/api/v1/vendor/__init__.py
vendored
@@ -1,21 +1,49 @@
|
||||
# app/api/v1/vendor/__init__.py
|
||||
"""
|
||||
Vendor API endpoints.
|
||||
|
||||
This module aggregates all vendor-related endpoints with proper prefixes.
|
||||
"""
|
||||
|
||||
from fastapi import APIRouter
|
||||
from . import auth, dashboard, products, orders, marketplace, inventory, vendor
|
||||
# Import all sub-routers
|
||||
from . import (
|
||||
auth,
|
||||
dashboard,
|
||||
profile,
|
||||
settings,
|
||||
products,
|
||||
orders,
|
||||
customers,
|
||||
teams,
|
||||
inventory,
|
||||
marketplace,
|
||||
payments,
|
||||
media,
|
||||
notifications,
|
||||
analytics,
|
||||
)
|
||||
|
||||
|
||||
# Create vendor router
|
||||
router = APIRouter()
|
||||
|
||||
# Include all vendor sub-routers
|
||||
# Include all vendor sub-routers with their prefixes and tags
|
||||
# Note: prefixes are already defined in each router file
|
||||
|
||||
router.include_router(auth.router, tags=["vendor-auth"])
|
||||
router.include_router(dashboard.router, tags=["vendor-dashboard"])
|
||||
router.include_router(profile.router, tags=["vendor-profile"])
|
||||
router.include_router(settings.router, tags=["vendor-settings"])
|
||||
router.include_router(products.router, tags=["vendor-products"])
|
||||
router.include_router(orders.router, tags=["vendor-orders"])
|
||||
router.include_router(marketplace.router, tags=["vendor-marketplace"])
|
||||
router.include_router(customers.router, tags=["vendor-customers"])
|
||||
router.include_router(teams.router, tags=["vendor-teams"])
|
||||
router.include_router(inventory.router, tags=["vendor-inventory"])
|
||||
router.include_router(vendor.router, tags=["vendor-management"])
|
||||
router.include_router(marketplace.router, tags=["vendor-marketplace"])
|
||||
router.include_router(payments.router, tags=["vendor-payments"])
|
||||
router.include_router(media.router, tags=["vendor-media"])
|
||||
router.include_router(notifications.router, tags=["vendor-notifications"])
|
||||
router.include_router(analytics.router, tags=["vendor-analytics"])
|
||||
|
||||
__all__ = ["router"]
|
||||
|
||||
Reference in New Issue
Block a user