I have custom controller outputting JSON format which works well for the below URL level;
** Works
base url/module/folder/action
//equates to Vendor\Module\Controller\Folder\Index.php
However I would like some somewhat deeper nested URL endpoints as per below but I get 404 on controllers deeper that one folder;
**Hit with 404
base url/module/folder/anotherfolder/action
//equates to Vendor\Module\Controller\Folder\Anotherfolder\Index.php
/* or even deeper */
**Hit with 404 - not tested
base url/module/folder/anotherfolder/deeperfolder/action
//equates to Vendor\Module\Controller\Folder\Anotherfolder\Deeperfolder\Index.php
I'm guessing Magento2 doesn't allow deep nested URL types or controllers ...
For me, this deeper nesting would be ideal to have a more manageable controller development & access since we have lost the ability to have multiple actions/endpoints in the one controller (Magento 1.*) (advise if not the case)