Put the get/post methods together.