feat(fase4): add GlobalVariable API routes

Add schemas and router for global variables with CRUD operations
and admin-only access controls for create/update/delete.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
Claude AI
2026-01-29 11:13:26 +00:00
parent 991bd161f0
commit 62d4c37c1d
3 changed files with 130 additions and 1 deletions

View File

@@ -2,7 +2,7 @@ from fastapi import FastAPI
from fastapi.middleware.cors import CORSMiddleware
from app.core.config import get_settings
from app.core.database import engine, Base
from app.routers import auth, whatsapp, flows, queues, supervisor, flow_templates
from app.routers import auth, whatsapp, flows, queues, supervisor, flow_templates, global_variables
settings = get_settings()
@@ -32,6 +32,7 @@ app.include_router(flows.router)
app.include_router(queues.router)
app.include_router(supervisor.router)
app.include_router(flow_templates.router)
app.include_router(global_variables.router)
@app.get("/health")