CodeIgniter Forums
Option to disable httpVerb in auto route improved - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: CodeIgniter 4 (https://forum.codeigniter.com/forumdisplay.php?fid=28)
+--- Forum: CodeIgniter 4 Feature Requests (https://forum.codeigniter.com/forumdisplay.php?fid=29)
+--- Thread: Option to disable httpVerb in auto route improved (/showthread.php?tid=88460)



Option to disable httpVerb in auto route improved - nordin_sba - 09-12-2023

I would like a setting to disable the httpVerb in front of a function/method with autoRouteImproved.
I would like to use autoRouteImproved, but when migrating from CodeIgniter 4.1 and lower I would need to change every method in a project.
That would be a big hassle, a option to disable this would be nice.


RE: Option to disable httpVerb in auto route improved - kenjis - 09-12-2023

You request non sense. The httpVerb prefix is the key of the security enhancement in Auto Routing Improved.
If we add the option, Auto Routing Improved would be dangerous as Auto Routing Legacy.

I recommend you use Auto Routing Legacy. Then you don't need to change method names.
https://codeigniter4.github.io/CodeIgniter4/incoming/routing.html#auto-routing-legacy