add post method and the others