$routes->group('api/v1', ['namespace' => 'Api\V1', 'filter' => 'ApiGuard'],
static function ($routes) {
$routes->get('companies/(:num).json', '\App\Controllers\Api\V1\Companies::company/$1');
$routes->get('companies.json', '\App\Controllers\Api\V1\Companies::fetchAll');
$routes->post('companies/(:num).json', 'Companies::post');
$routes->put('companies/(:num).json', 'Companies::put');
$routes->delete('companies/(:num).json', 'Companies::delete');
}
);