Implement the post method in PostController.