l, 2)}</pre>`;
                    break;
                case 'get_post':
                    elements.getResult.innerHTML = `<pre>${JSON.stringify(data.post, null, 2)}</pre>`;
                    break;
                case 'publish_post':
                    elements.publishResult.textContent = 'Post published successfully';
                    break;
                case 'delete_post':
                    elements.deleteResult.textContent = 'Post deleted successfully';
                    break;
       