Skip to content

Commit

Permalink
Merge pull request #95 from CakeDC/feature/fix-deprecation-router
Browse files Browse the repository at this point in the history
#fix-deprecation-router fix deprecation
  • Loading branch information
steinkel authored Feb 2, 2022
2 parents 45656b7 + be70d6f commit 302f3fb
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion config/routes.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,10 @@
use Cake\Routing\Router;
use Cake\Routing\RouteBuilder;

Router::plugin('CakeDC/Api', ['path' => '/api'], function ($routes) {
/**
* @var \Cake\Routing\RouteBuilder $routes
*/
$routes->plugin('CakeDC/Api', ['path' => '/api'], function ($routes) {
$useVersioning = Configure::read('Api.useVersioning');
$versionPrefix = Configure::read('Api.versionPrefix');
$middlewares = Configure::read('Api.Middleware');
Expand Down

0 comments on commit 302f3fb

Please sign in to comment.