addWithMethod()
addWithMethod(string $method, string $url, callable $action)
add a route with a method
$url:
- /test
- /test/* matches /test, /test/truc, /test/b/aaaa/ggg, ...
- /test/:id matches /test/a, /test/1, /test/test, /test/me
Parameters
string |
$method |
|
string |
$url |
|
callable |
$action |
|