I have many of the templates organized into sub-folders. E.g. /manager/entries/edit.html
, /manager/users/edit.html
etc.
The site is using 4-segment URLs to access code in those templates, e.g. http://site.com/manager/entries/edit/{slug}
, http://site.com/manager/users/edit/{id}
etc.
Currently I have to set up custom route for every template, e.g. 'manager/users/edit/(.*)' => 'manager/users/edit',
etc.
Is there a way I could set up a "generic" route which would first check for existing templates in a subfolder (whether globally or on per-folder basis) and try to use that first? So I would not need to create route for each individual template.