refactor(b1): contacts domain fully plugin-owned - routes moved from core to contacts plugin with require_active_plugin guard
Check Cross-Plugin Imports / check (push) Has been cancelled

This commit is contained in:
Agent Zero
2026-08-23 20:20:02 +02:00
parent 5cee78c54c
commit 5ad107ff83
8 changed files with 48 additions and 15 deletions
+3 -8
View File
@@ -39,9 +39,6 @@ from app.routes import ( # noqa: E402
compliance,
backups,
bank_accounts,
contact_folder_permissions,
contact_folders,
contacts,
currencies,
custom_field_definitions,
custom_fields,
@@ -545,11 +542,9 @@ def create_app() -> FastAPI:
app.include_router(groups.router)
app.include_router(tenants.router)
app.include_router(notifications.router)
from app.routes.companies import router as companies_router
app.include_router(companies_router)
app.include_router(contacts.router)
app.include_router(contact_folders.router)
app.include_router(contact_folder_permissions.router)
# NOTE: contacts/companies/contact-folders routes are plugin-owned now
# (Block B1) and mounted via the manifest.routes mechanism below with
# require_active_plugin("contacts") protection.
app.include_router(entity_permissions.router)
app.include_router(dashboard.router)
app.include_router(entity_history.router)