Add code for different post methods