added ability to set routes for different request methods

You should use `$this->getRequest()->getMethod()` instead of global constant.
There is no such method `getRequest` here so you have to write it. Pass the request object as a constructor parameter.
Also assume that a route config can omit `'method'` option, in this case you should allow to process the request with any http method.