[split-required] [guardrail-change] Enforce 500 LOC budget across all services
Install LOC guardrails (check-loc.sh, architecture.md, pre-commit hook) and split all 44 files exceeding 500 LOC into domain-focused modules: - consent-service (Go): models, handlers, services, database splits - backend-core (Python): security_api, rbac_api, pdf_service, auth splits - admin-core (TypeScript): 5 page.tsx + sidebar extractions - pitch-deck (TypeScript): 6 slides, 3 UI components, engine.ts splits - voice-service (Python): enhanced_task_orchestrator split Result: 0 violations, 36 exempted (pipeline, tests, pure-data files). Go build verified clean. No behavior changes — pure structural splits. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -18,6 +18,7 @@ from fastapi.middleware.cors import CORSMiddleware
|
||||
# ---------------------------------------------------------------------------
|
||||
from auth_api import router as auth_router
|
||||
from rbac_api import router as rbac_router
|
||||
from rbac_teachers_api import router as rbac_teachers_router
|
||||
from notification_api import router as notification_router
|
||||
from email_template_api import (
|
||||
router as email_template_router,
|
||||
@@ -89,9 +90,12 @@ app.add_middleware(RateLimiterMiddleware, valkey_url=VALKEY_URL)
|
||||
# Auth (proxy to consent-service)
|
||||
app.include_router(auth_router, prefix="/api")
|
||||
|
||||
# RBAC (teacher / role management)
|
||||
# RBAC (role / assignment / custom-role management)
|
||||
app.include_router(rbac_router, prefix="/api")
|
||||
|
||||
# RBAC Teachers (teacher CRUD, listing, roles per teacher)
|
||||
app.include_router(rbac_teachers_router, prefix="/api")
|
||||
|
||||
# Notifications (proxy to consent-service)
|
||||
app.include_router(notification_router, prefix="/api")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user