Implement complete marketing homepage for Wizamart targeting Letzshop vendors in Luxembourg. Includes: - Marketing homepage with hero, pricing tiers, and add-ons - 4-step signup wizard with Stripe card collection (30-day trial) - Letzshop vendor lookup for shop claiming - Platform API endpoints for pricing, vendors, and signup - Stripe SetupIntent integration for trial with card upfront - Database fields for Letzshop vendor identity tracking 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
53 lines
2.0 KiB
Python
53 lines
2.0 KiB
Python
# app/api/main.py
|
|
"""
|
|
API router configuration for multi-tenant ecommerce platform.
|
|
|
|
This module provides:
|
|
- API version 1 route aggregation
|
|
- Route organization by user type (admin, vendor, shop)
|
|
- Proper route prefixing and tagging
|
|
"""
|
|
|
|
from fastapi import APIRouter
|
|
|
|
from app.api.v1 import admin, platform, shop, vendor
|
|
from app.api.v1.shared import language, webhooks
|
|
|
|
api_router = APIRouter()
|
|
|
|
# ============================================================================
|
|
# ADMIN ROUTES (Platform-level management)
|
|
# Prefix: /api/v1/admin
|
|
# ============================================================================
|
|
|
|
api_router.include_router(admin.router, prefix="/v1/admin", tags=["admin"])
|
|
|
|
# ============================================================================
|
|
# VENDOR ROUTES (Vendor-scoped operations)
|
|
# Prefix: /api/v1/vendor
|
|
# ============================================================================
|
|
|
|
api_router.include_router(vendor.router, prefix="/v1/vendor", tags=["vendor"])
|
|
|
|
# ============================================================================
|
|
# SHOP ROUTES (Public shop frontend API)
|
|
# Prefix: /api/v1/shop
|
|
# ============================================================================
|
|
|
|
api_router.include_router(shop.router, prefix="/v1/shop", tags=["shop"])
|
|
|
|
# ============================================================================
|
|
# PLATFORM ROUTES (Public marketing and signup)
|
|
# Prefix: /api/v1/platform
|
|
# ============================================================================
|
|
|
|
api_router.include_router(platform.router, prefix="/v1/platform", tags=["platform"])
|
|
|
|
# ============================================================================
|
|
# SHARED ROUTES (Cross-context utilities)
|
|
# Prefix: /api/v1
|
|
# ============================================================================
|
|
|
|
api_router.include_router(language.router, prefix="/v1", tags=["language"])
|
|
api_router.include_router(webhooks.router, prefix="/v1", tags=["webhooks"])
|