created specific route files for frontends

This commit is contained in:
2025-11-02 15:26:55 +01:00
parent 9611c03a36
commit 9cc92e5fc4
12 changed files with 76 additions and 235 deletions

View File

@@ -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"]