I need a function that makes a http request (get, post etc) based on the input into the function without using a bunch of if statements
Eg. I have a function: