update route get/post method