Fix Forntend build issues 6
This commit is contained in:
@@ -37,7 +37,7 @@ const CACHE_DURATION = 5 * 60 * 1000; // 5 minutes
|
|||||||
|
|
||||||
export class SubscriptionService {
|
export class SubscriptionService {
|
||||||
private readonly baseUrl = '/tenants';
|
private readonly baseUrl = '/tenants';
|
||||||
private readonly plansUrl = '/plans/';
|
private readonly plansUrl = '/plans';
|
||||||
|
|
||||||
// ============================================================================
|
// ============================================================================
|
||||||
// NEW METHODS - Centralized Plans API
|
// NEW METHODS - Centralized Plans API
|
||||||
|
|||||||
@@ -21,7 +21,7 @@ logger = structlog.get_logger()
|
|||||||
router = APIRouter(prefix="/plans", tags=["subscription-plans"])
|
router = APIRouter(prefix="/plans", tags=["subscription-plans"])
|
||||||
|
|
||||||
|
|
||||||
@router.get("/", response_model=Dict[str, Any])
|
@router.get("", response_model=Dict[str, Any])
|
||||||
async def get_available_plans():
|
async def get_available_plans():
|
||||||
"""
|
"""
|
||||||
Get all available subscription plans with complete metadata
|
Get all available subscription plans with complete metadata
|
||||||
|
|||||||
@@ -116,7 +116,8 @@ class BaseFastAPIService:
|
|||||||
config = {**default_config, **fastapi_kwargs}
|
config = {**default_config, **fastapi_kwargs}
|
||||||
|
|
||||||
# Create FastAPI app
|
# Create FastAPI app
|
||||||
self.app = FastAPI(**config)
|
# Disable redirect_slashes to avoid 307 redirects that break behind HTTPS proxies
|
||||||
|
self.app = FastAPI(**config, redirect_slashes=False)
|
||||||
|
|
||||||
# Setup unified OpenTelemetry telemetry
|
# Setup unified OpenTelemetry telemetry
|
||||||
# This single call configures:
|
# This single call configures:
|
||||||
|
|||||||
Reference in New Issue
Block a user