created specific route files for frontends
This commit is contained in:
15
app/api/v1/vendor/__init__.py
vendored
15
app/api/v1/vendor/__init__.py
vendored
@@ -1,6 +1,6 @@
|
||||
# app/api/v1/vendor/__init__.py
|
||||
"""
|
||||
Vendor API endpoints.
|
||||
Vendor API router aggregation.
|
||||
|
||||
This module aggregates all vendor-related JSON API endpoints.
|
||||
|
||||
@@ -14,7 +14,7 @@ from fastapi import APIRouter
|
||||
|
||||
# Import all sub-routers (JSON API only)
|
||||
from . import (
|
||||
info, # NEW: Vendor info endpoint
|
||||
info,
|
||||
auth,
|
||||
dashboard,
|
||||
profile,
|
||||
@@ -29,7 +29,6 @@ from . import (
|
||||
media,
|
||||
notifications,
|
||||
analytics,
|
||||
# NOTE: pages is NOT imported here - it's mounted separately in main.py
|
||||
)
|
||||
|
||||
|
||||
@@ -66,14 +65,4 @@ router.include_router(media.router, tags=["vendor-media"])
|
||||
router.include_router(notifications.router, tags=["vendor-notifications"])
|
||||
router.include_router(analytics.router, tags=["vendor-analytics"])
|
||||
|
||||
# ============================================================================
|
||||
# NOTE: HTML Page Routes
|
||||
# ============================================================================
|
||||
# HTML page routes (pages.router) are NOT included here.
|
||||
# They are mounted separately in main.py at /vendor/* to avoid conflicts.
|
||||
#
|
||||
# This separation ensures:
|
||||
# - JSON API: /api/v1/vendor/* (this router)
|
||||
# - HTML Pages: /vendor/* (mounted in main.py)
|
||||
|
||||
__all__ = ["router"]
|
||||
|
||||
Reference in New Issue
Block a user