roberto-butti/CodeIgniter — comment on commit 4d788ce22d5a1ee6d0534d776db97a7b66238059
File:  line 0
By roberto-butti:

You can define routing rules with HTTP verbs (GET, POST etc)
$route['test/test'] = "welcome/test";
$route['{GET}product/(:num)'] = "welcome/product_view/$1";
$route['{POST}product/(:num)'] = "welcome/product_edit/$1";

You can go on with classic rules like:
$route['test/test'] = "welcome/test";
In this case the HTTP verb is not important. The rule is based only with the uri.

If you want define the uri and the HTTP verb you can write:
$route['{GET}product/(:num)'] = "welcome/product_view/$1";
This rule is valid only for GET http method and uri like this product/22
If you have product/22 but with POST http method this rule don't match.

This is useful when you write RESTFul API (same uri but different HTTP verbs)

Help me to undersand if you like this patch or help me to test it :)
Thanks