Options
When
true, the JSON API route is registered. Set to false to disable the API entirely — the route will not be added to your application’s router.The URL prefix for the API route. The full endpoint is:With the default prefix, the route is
GET /api/menu/{code}.config/packages/nowo_dashboard_menu.yaml
Using the API
Once enabled, fetch a menu tree by its code:When
enabled is set to false, the API route is not registered and any request to that path will return a 404. No controller or listener is skipped at runtime — the route simply does not exist.Changing the path prefix
If your application already uses/api/menu for another purpose, change path_prefix to avoid conflicts:
config/packages/nowo_dashboard_menu.yaml
GET /api/v1/nav/{code}.