routes icon indicating copy to clipboard operation
routes copied to clipboard

Add HTTP methods to router map

Open amt925 opened this issue 4 years ago • 0 comments

This changes the map() method's $args array parameter to a $method string parameter containing a piped string of the 5 HTTP methods (GET|POST|PATCH|PUT|DELETE) to match AltoRouter https://altorouter.com/usage/mapping-routes.html.

The $args parameter did not do anything that I can see which is the reason it was removed.

This may look like a large change but it is mostly PSR-12 formatting.

amt925 avatar Aug 25 '20 20:08 amt925