fix demo load

This commit is contained in:
Urtzi Alfaro
2025-12-25 20:20:16 +01:00
parent cd85eb6c12
commit 532b057f59
2 changed files with 105 additions and 7 deletions

View File

@@ -49,6 +49,7 @@ DEMO_ALLOWED_OPERATIONS = {
"/api/v1/production/batches",
"/api/v1/tenants/batch/sales-summary",
"/api/v1/tenants/batch/production-summary",
"/api/v1/auth/me/onboarding/complete", # Allow completing onboarding (no-op for demos)
# Note: Forecast generation is explicitly blocked (see DEMO_BLOCKED_PATHS)
],
@@ -56,6 +57,7 @@ DEMO_ALLOWED_OPERATIONS = {
"/api/v1/pos/sales/*",
"/api/v1/orders/*",
"/api/v1/inventory/stock/*",
"/api/v1/auth/me/onboarding/step", # Allow onboarding step updates (no-op for demos)
],
# Blocked operations