Simplified PostController by removing references to JSON