diff --git a/config/routes.php b/config/routes.php index 42e55829..0744cb7e 100755 --- a/config/routes.php +++ b/config/routes.php @@ -67,8 +67,6 @@ */ $routes->connect('/pages/*', ['controller' => 'Pages', 'action' => 'display']); - - /** * Connect catchall routes for all controllers. * @@ -203,16 +201,16 @@ }); // For restful session -Router::scope('/session', ['plugin' => 'Restful'], function ($routes) { - $routes->scope('/', ['controller' => 'Session'], function ($routes) { - $routes->extensions(['json']); - - $routes->connect('/:key', ['action' => 'check', '_method' => 'CHECK'], ['pass' => ['key']]); - $routes->connect('/:key', ['action' => 'read', '_method' => 'GET'], ['pass' => ['key']]); - $routes->connect('/', ['action' => 'write', '_method' => 'POST']); - $routes->connect('/:key', ['action' => 'delete', '_method' => 'DELETE'], ['pass' => ['key']]); - }); -}); +// Router::scope('/session', ['plugin' => 'Restful'], function ($routes) { +// $routes->scope('/', ['controller' => 'Session'], function ($routes) { +// $routes->extensions(['json']); + +// $routes->connect('/:key', ['action' => 'check', '_method' => 'CHECK'], ['pass' => ['key']]); +// $routes->connect('/:key', ['action' => 'read', '_method' => 'GET'], ['pass' => ['key']]); +// $routes->connect('/', ['action' => 'write', '_method' => 'POST']); +// $routes->connect('/:key', ['action' => 'delete', '_method' => 'DELETE'], ['pass' => ['key']]); +// }); +// }); /** * Load all plugin routes. See the Plugin documentation on