1.1 KiB
1.1 KiB
Pastable
Pastable is a free and open-source Plabble initiative to Pastebin.
Features
- Paste text and code
- Optional expiration
- Self destruct option (view N times)
- URL shortener
- One-time password share
Routes
- GET
/- Home page with explanation - GET
/:id- based on Accept header, syntax-highlighted HTML or plain text - POST
/- create a new paste (default no expiration and infinite views), plain text raw body. OR: form parameterscontent, and optionallanguage,expires(UNIX timestamp) andmax_views(integer) Returns generated id as plain text. - POST
/:id- same as POST/, but uses the ID if available. Else it returns a random id. - POST
/once- same as POST/, but setsmax_viewsto 1 - POST
/once/:id- same as POST/:id, but setsmax_viewsto 1 - GET
/to/:id- navigate to shortcut link (redirects using HTTP if found) - POST
/to- create a new link (plain text raw body) OR: form parameterhref. Returns generated id as plain text. - POST
/to/:id- same but uses the ID if available, else it returns a random id.