Fix Forntend build issues 6

This commit is contained in:
2026-01-24 09:27:51 +01:00
parent 28a2b48f09
commit c82e1824a0
3 changed files with 4 additions and 3 deletions

View File

@@ -37,7 +37,7 @@ const CACHE_DURATION = 5 * 60 * 1000; // 5 minutes
export class SubscriptionService {
private readonly baseUrl = '/tenants';
private readonly plansUrl = '/plans/';
private readonly plansUrl = '/plans';
// ============================================================================
// NEW METHODS - Centralized Plans API

View File

@@ -21,7 +21,7 @@ logger = structlog.get_logger()
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():
"""
Get all available subscription plans with complete metadata

View File

@@ -116,7 +116,8 @@ class BaseFastAPIService:
config = {**default_config, **fastapi_kwargs}
# 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
# This single call configures: