small bug

This commit is contained in:
Chris W 2023-10-22 12:06:53 -06:00
parent 18a75fcc24
commit 66596f5ecc
2 changed files with 4 additions and 3 deletions

View File

@ -25,6 +25,7 @@
}, },
body: JSON.stringify({ body: JSON.stringify({
contents, contents,
raw: true,
...event.detail, ...event.detail,
}) })
}); });

View File

@ -168,11 +168,11 @@
<h4 class="h4 mt-4 mb-2">Examples</h4> <h4 class="h4 mt-4 mb-2">Examples</h4>
<code class="bg-gray-900 py-2 px-4 mb-2 block rounded-lg">curl -X POST -H "Content-Type: application/json" -d '{'{'}"contents": "paste contents"{'}'}' https://0x45.st/api/pastes`}></code> <code class="bg-gray-900 py-2 px-4 mb-2 block rounded-lg">curl -X POST -H "Content-Type: application/json" -d '{'{'}"contents": "paste contents"{'}'}' https://0x45.st/api/pastes</code>
<code class="bg-gray-900 py-2 px-4 mb-2 block rounded-lg">curl -X POST -F "contents=paste contents" https://0x45.st/api/pastes`}></code> <code class="bg-gray-900 py-2 px-4 mb-2 block rounded-lg">curl -X POST -F "contents=paste contents" https://0x45.st/api/pastes</code>
<code class="bg-gray-900 py-2 px-4 mb-2 block rounded-lg">curl -X POST -d "paste contents" https://0x45.st/api/pastes`}></code> <code class="bg-gray-900 py-2 px-4 mb-2 block rounded-lg">curl -X POST -d "paste contents" https://0x45.st/api/pastes</code>
<p class="mb-4 mt-4">If the paste was successfully created, the API will respond with the following JSON:</p> <p class="mb-4 mt-4">If the paste was successfully created, the API will respond with the following JSON:</p>