added ability to set routes for different request methods