Added functionality to create routes for specific methods