the middle of the idiots

This commit is contained in:
2025-10-24 16:29:40 -05:00
parent 6a58e19b10
commit 721301c779
2472 changed files with 237076 additions and 418 deletions

View File

@@ -46,8 +46,10 @@ app.add_middleware(
allow_headers=["*"],
)
# Add tenant middleware for multi-tenancy
app.add_middleware(TenantMiddleware)
# Add tenant middleware for multi-tenancy (skip in testing)
import os
if os.getenv("TESTING", "False").lower() != "true":
app.add_middleware(TenantMiddleware)
# Add authentication scheme
security = HTTPBearer()