added post and get request methods