https://github.com/guyfedwards/pbandj
https://github.com/guyfedwards/pbandj
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/guyfedwards/pbandj
- Owner: guyfedwards
- License: mit
- Created: 2024-03-08T12:57:16.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2024-03-11T10:43:37.000Z (over 2 years ago)
- Last Synced: 2025-12-28T18:51:57.958Z (6 months ago)
- Language: HTML
- Size: 12.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# pbandj
Read-then-burn esque pastebin. Each entry can only be viewed once.
## Running
### Build local
```sh
make build
./pbandj -port 1337
```
### Docker
Docker image is available with `docker pull guyfedwards/pbandj` or you can build locally:
```sh
docker build .
docker run -p 1337:1337 --name pbandj
```
## 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
}
```