netz98 / n98-magerun2

The swiss army knife for Magento developers, sysadmins and devops. The tool provides a huge set of well tested command line commands which save hours of work time. All commands are extendable by a module API.
https://magerun.net
Other
871 stars 221 forks source link

Add HTTP method to route:list #1411

Open peterjaap opened 8 months ago

peterjaap commented 8 months ago

Action controllers should implement either HttpGetActionInterface, HttpPostActionInterface, or both (when no interface is implemented it also supports both).

I propose adding a column that shows that info;

$ magerun2 route:list | grep elgentos                       
| frontend  | elgentos_ups                    | Elgentos_Ups                        | elgentos_ups/ajax/upslocations                                    |    POST         |
| frontend  | elgentos_ups                    | Elgentos_Ups                        | elgentos_ups/ajax/updateupslocation                               |    POST, GET    |
| adminhtml | elgentos_mandrill               | Elgentos_Mandrill                   | elgentos_mandrill/account/test                                    |    GET          |
| adminhtml | elgentos_customproduct          | Elgentos_CustomProduct              | elgentos_customproduct/ajax/tax                                   |    POST, GET    |
cmuench commented 5 months ago

@peterjaap I added this feature to the develop version.

peterjaap commented 5 months ago

@cmuench love it! On Kingsday 🤴 even!