diff --git a/src/routes/about/+page.svelte b/src/routes/about/+page.svelte index 88fcd3e..ca6d446 100644 --- a/src/routes/about/+page.svelte +++ b/src/routes/about/+page.svelte @@ -35,14 +35,14 @@
+
Paste69 is a pastebin service built with SvelteKit. It's a simple, fast, and easy to use pastebin service based on HasteBin. Like HasteBin, it's also open source and can be found over on GitHub.
-+
Code highlighting is handled with the help of highlight.js. So if you have any issues with language detection or missing languages, take it up with them. Available languages (with their extensions) are as follows: @@ -74,9 +74,9 @@
+
To create a paste, go home or click the "New" button (
+
To copy an existing paste, click the "Copy" button (
+
To make it easier to create pastes, a CLI script is available. The script can be found here. To use the script: @@ -115,14 +115,14 @@ # -r, --raw Return the raw JSON response. # -c, --copy Copy the paste URL to the clipboard. -
To create a paste with the script, simply pipe the contents of a file to the script:
+To create a paste with the script, simply pipe the contents of a file to the script:
cat file.md | ./paste69.sh
# https://0x45.st/some-random-id.md
- +
Paste69 has a simple API for creating and fetching pastes. The API accepts JSON, form data, and plain text with query parameters. The API will respond with JSON or plain text, depenant on the state of the `raw` parameter. @@ -141,11 +141,11 @@ -
+
To create a paste, send a POST request to /api/pastes
. Valid parameters are as follows:
-JSON Request@@ -191,7 +191,7 @@
If the paste was successfully created, the API will respond with the following JSON:
+If the paste was successfully created, the API will respond with the following JSON:
{'{'}
"id": "paste id",
@@ -207,7 +207,7 @@
Fetching a Paste
-
+
To fetch a paste, send a GET request to{' '}
/api/pastes/:id
. If the paste exists, the API will respond with the following JSON: