Admin plugin / PagesController methods:
- home
- index
- add
- ..
removed default display method.
Problem, i can't access url without slash at end mysite.com/admin/pages , if i try get redirect to mysite.com/admin/webroot/pages and error message
Error: WebrootController could not be found.
For all other Controllers url without slash at end works.
Router in admin plugin / config:
Router::plugin('Admin', function ($routes) {
$routes->connect('/login', ['controller' => 'Users', 'action' => 'login']);
$routes->connect('/new-password', ['controller' => 'Users', 'action' => 'newPassword']);
$routes->connect('/reset-password', ['controller' => 'Users', 'action' => 'resetPassword']);
//$routes->connect('/pages', ['controller' => 'Pages', 'action' => 'index']);
$routes->connect('/', ['controller' => 'Pages', 'action' => 'home']);
$routes->fallbacks('DashedRoute');
});