I’m trying to make the default route into /Api/Admins/login whenever the project is opened using this route:
$builder->connect('/', ['prefix' => 'Api', 'controller' => 'Admins', 'action' => 'login']);
this is because my login function is in Controller/Api/Admins inside the AdminsController, and my login.php is also in template/Api/Admins. I’m using CakePHP 4 and I’m trying to follow the CMS tutorial Authentication in cookbook