example route.php.As long as you don’t change the namespace of the controller you should be able to access it from the global namespace even if it is in a subfolder.
app/controllers/landing/MainController.php (subfolder is landing)
public function getIndex()
For access from global. You must done composer dump-autoload after you have created the controller.