fixed ApplicationException.
added `PUT /posts/<post_id>`