Oops, missing http method in function call