From 66596f5ecccbe16dbd89bab4c5d953703565f7e1 Mon Sep 17 00:00:00 2001 From: Chris W Date: Sun, 22 Oct 2023 12:06:53 -0600 Subject: [PATCH] small bug --- src/routes/+page.svelte | 1 + src/routes/about/+page.svelte | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) 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: