diff --git a/src/routes/+page.svelte b/src/routes/+page.svelte index 82cf7fd..905b435 100644 --- a/src/routes/+page.svelte +++ b/src/routes/+page.svelte @@ -25,6 +25,7 @@ }, body: JSON.stringify({ contents, + raw: true, ...event.detail, }) }); diff --git a/src/routes/about/+page.svelte b/src/routes/about/+page.svelte index 05bdd0d..75b60a5 100644 --- a/src/routes/about/+page.svelte +++ b/src/routes/about/+page.svelte @@ -168,11 +168,11 @@

Examples

- curl -X POST -H "Content-Type: application/json" -d '{'{'}"contents": "paste contents"{'}'}' https://0x45.st/api/pastes`}> + curl -X POST -H "Content-Type: application/json" -d '{'{'}"contents": "paste contents"{'}'}' https://0x45.st/api/pastes - curl -X POST -F "contents=paste contents" https://0x45.st/api/pastes`}> + curl -X POST -F "contents=paste contents" https://0x45.st/api/pastes - curl -X POST -d "paste contents" https://0x45.st/api/pastes`}> + curl -X POST -d "paste contents" https://0x45.st/api/pastes

If the paste was successfully created, the API will respond with the following JSON: