/pbandj

Primary LanguageHTMLMIT LicenseMIT

pbandj

Read-then-burn esque pastebin. Each entry can only be viewed once.

Running

Build local

make build
./pbandj -port 1337

Docker

Docker image is available with docker pull guyfedwards/pbandj or you can build locally:

docker build .
docker run -p 1337:1337 --name pbandj <image_id>

UI

A basic form is rendered at /{id}. This can be used to create a new paste, or will display an existing one if {id} is present.

API

POST /paste
application/json
{
  content  string
}
{
  id      string
}
GET /paste/{id}
application/json
{
  id      string
  content string
}