Added new action: getPosts