Skip to content

Commit

Permalink
#fix-deprecation-router fix deprecation
Browse files Browse the repository at this point in the history
  • Loading branch information
steinkel committed Feb 2, 2022
1 parent 45656b7 commit be70d6f
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 be70d6f

Please sign in to comment.