adds route and method to edit, update and delete a post (button shown in the edit form)