added sample endpoints for listing and creating posts