Files
pastabble/pastabble-frontend/src/lib/pages/About.svelte
2024-02-01 16:11:09 +01:00

32 lines
1.6 KiB
Svelte

<main>
<pre class="mt-10">
Welcome at PASTABBLE!
ABOUT
Pastable is a lightweight and fast pastebin alternative, and URL-shortener made by Plabble and written in Rust.
USAGE
Get /about: Show this page
Get /&#123;id&#125;: Get paste by ID and return in plain text
Post /: Create new paste (plain text raw body or form parameter 'content') and return random generated key
Post /&#123;id&#125;: Create new paste (plain text raw body) and return requested key if available, else random generated key
Get /to/&#123;id&#125;: Navigate to shortcut link (browser redirect)
Post /to: Create new link (plain text raw body or form parameter 'link') and return random generated key
Post /to/&#123;id&#125;: Create new link (plain text raw body) and return requested key if available, else random generated key
FROM TERMINAL
Pipe your input into: curl -F 'content=&lt;-' https://paste.plabble.org -w '\n'
Or post it as raw data like: curl https://paste.plabble.org -H 'Content-Type: text/plain' -d @- -w '\n'
You can create an alias for this! To get the result: curl https://paste.plabble.org/YOURID
For links:
Pipe your input into: curl -F 'link=&lt;-' https://paste.plabble.org/to -w '\n'
USING GUI
If you want to view a note using the GUI, add /#/ in the URL
For example:
https://paste.plabble.org/YOURID becomes https://paste.plabble.org/#/YOURID
</pre>
</main>