Multitenant implementation with custom Domain, theme per vendor
This commit is contained in:
@@ -5,6 +5,7 @@ Admin API router aggregation.
|
||||
This module combines all admin-related API endpoints:
|
||||
- Authentication (login/logout)
|
||||
- Vendor management (CRUD, bulk operations)
|
||||
- Vendor domains management (custom domains, DNS verification)
|
||||
- User management (status, roles)
|
||||
- Dashboard and statistics
|
||||
- Marketplace monitoring
|
||||
@@ -20,6 +21,7 @@ from fastapi import APIRouter
|
||||
from . import (
|
||||
auth,
|
||||
vendors,
|
||||
vendor_domains,
|
||||
users,
|
||||
dashboard,
|
||||
marketplace,
|
||||
@@ -34,28 +36,56 @@ from . import (
|
||||
router = APIRouter()
|
||||
|
||||
|
||||
# ============================================================================
|
||||
# Authentication & Authorization
|
||||
# ============================================================================
|
||||
|
||||
# Include authentication endpoints
|
||||
router.include_router(auth.router, tags=["admin-auth"])
|
||||
|
||||
|
||||
# ============================================================================
|
||||
# Vendor Management
|
||||
# ============================================================================
|
||||
|
||||
# Include vendor management endpoints
|
||||
router.include_router(vendors.router, tags=["admin-vendors"])
|
||||
|
||||
# Include vendor domains management endpoints
|
||||
router.include_router(vendor_domains.router, tags=["admin-vendor-domains"])
|
||||
|
||||
|
||||
# ============================================================================
|
||||
# User Management
|
||||
# ============================================================================
|
||||
|
||||
# Include user management endpoints
|
||||
router.include_router(users.router, tags=["admin-users"])
|
||||
|
||||
|
||||
# ============================================================================
|
||||
# Dashboard & Statistics
|
||||
# ============================================================================
|
||||
|
||||
# Include dashboard and statistics endpoints
|
||||
router.include_router(dashboard.router, tags=["admin-dashboard"])
|
||||
|
||||
|
||||
# ============================================================================
|
||||
# Marketplace & Imports
|
||||
# ============================================================================
|
||||
|
||||
# Include marketplace monitoring endpoints
|
||||
router.include_router(marketplace.router, tags=["admin-marketplace"])
|
||||
|
||||
# Include monitoring endpoints (placeholder)
|
||||
# router.include_router(monitoring.router, tags=["admin-monitoring"])
|
||||
|
||||
# ============================================================================
|
||||
# Admin Models Integration
|
||||
# Platform Administration
|
||||
# ============================================================================
|
||||
|
||||
# Include monitoring endpoints (placeholder for future implementation)
|
||||
# router.include_router(monitoring.router, tags=["admin-monitoring"])
|
||||
|
||||
# Include audit logging endpoints
|
||||
router.include_router(audit.router, tags=["admin-audit"])
|
||||
|
||||
@@ -65,6 +95,7 @@ router.include_router(settings.router, tags=["admin-settings"])
|
||||
# Include notifications and alerts endpoints
|
||||
router.include_router(notifications.router, tags=["admin-notifications"])
|
||||
|
||||
|
||||
# ============================================================================
|
||||
# HTML Page Routes (Jinja2 Templates)
|
||||
# ============================================================================
|
||||
@@ -72,5 +103,6 @@ router.include_router(notifications.router, tags=["admin-notifications"])
|
||||
# Include HTML page routes (these return rendered templates, not JSON)
|
||||
router.include_router(pages.router, tags=["admin-pages"])
|
||||
|
||||
|
||||
# Export the router
|
||||
__all__ = ["router"]
|
||||
|
||||
Reference in New Issue
Block a user