Move the Swagger UI viewer from core (pages/admin/api-docs/) into modules/api-docs/ as a self-contained module. Create module manifest with routes, permission, sidebar.admin_nav_item slot, asset group, and authorization policy. Remove API docs ability from core OperationsAuthorizationPolicy and UiCapabilityMap. Remove hardcoded sidebar nav item — now contributed via module slot. Add admin-automation group meta to sidebar template for module nav items. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
17 lines
558 B
PHP
17 lines
558 B
PHP
<?php
|
|
|
|
/**
|
|
* Module activation configuration.
|
|
*
|
|
* Modules listed here are loaded at boot time. The APP_ENABLED_MODULES env
|
|
* variable controls overrides with deterministic semantics:
|
|
* - APP_ENABLED_MODULES not set: use this config list
|
|
* - APP_ENABLED_MODULES='': explicit no-modules mode
|
|
* - APP_ENABLED_MODULES='a,b': exact module list from env
|
|
*
|
|
* Each entry must match a directory name under modules/ containing a module.php manifest.
|
|
*/
|
|
return [
|
|
'enabled_modules' => ['audit', 'addressbook', 'bookmarks', 'notifications', 'api-docs'],
|
|
];
|