updated project to handle post request