Create a file /config/api/authUser.php
<?php
return $this->invoke('Cockpit\\Controller\\RestApi', 'authUser');
Now calling /api/authUser should behave like /api/cockpit/authUser.
Create a file /config/api/authUser.php
<?php
return $this->invoke('Cockpit\\Controller\\RestApi', 'authUser');
Now calling /api/authUser should behave like /api/cockpit/authUser.