Skip to content

Release 3.2.0

Compare
Choose a tag to compare
@batopa batopa released this 07 Oct 08:13
· 148 commits to master since this release
5600cf3

Main changes are:

  • ApiProxyTrait now handle POST, PATCH and DELETE requests too

To activate it you need to add routing rules to your app, for example

$routes->scope('/api', ['_namePrefix' => 'api:'], function (RouteBuilder $routes) {
    $routes->get('/**', ['controller' => 'Api', 'action' => 'get'], 'get');
    $routes->post('/**', ['controller' => 'Api', 'action' => 'post'], 'post');
    $routes->patch('/**', ['controller' => 'Api', 'action' => 'patch'], 'patch');
    $routes->delete('/**', ['controller' => 'Api', 'action' => 'delete'], 'delete');
});