- Adds support for router dependencies
- Adds dependencies support for native WP REST endpoints by passing dependencies via argument
$router = new Router('api', 'v1');
$router->depends('buddypress'); // Global dependency across all sub-routers/endpoints
// Support for native WP REST endpoints
$args = [
'methods' => 'GET',
'depends' => ['buddypress'],
...
];
register_rest_route('api/v1', 'custom-endpoint', $args);