routes
routes copied to clipboard
Add HTTP methods to router map
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.