diff --git a/composer.json b/composer.json index f4ab89c..1fd9dd5 100644 --- a/composer.json +++ b/composer.json @@ -4,7 +4,7 @@ "type": "cakephp-plugin", "license": "MIT", "require": { - "cakephp/cakephp": "^4.1.0", + "cakephp/cakephp": "^4.3.0", "ishanvyas22/asset-mix": "^1.0" }, "require-dev": { diff --git a/config/routes.php b/config/routes.php index d0f2353..fa11d56 100644 --- a/config/routes.php +++ b/config/routes.php @@ -1,13 +1,13 @@ '/inertia'], - function (RouteBuilder $routes) { - $routes->fallbacks(DashedRoute::class); - } -); + /** @var RouteBuilder $routes */ + $routes->plugin( + 'Inertia', + ['path' => '/inertia'], + function (RouteBuilder $routes) { + $routes->fallbacks(DashedRoute::class); + } + );