Using HTTP method to route a request to a different function.