minimal pastebin
+ New Paste# Create a paste (basic auth required)
curl -u user:pass -X POST https://strings.witcc.dev/api/paste \
-H "Content-Type: text/plain" \
-H "X-Filename: example.py" \
-d 'print("hello world")'
# With custom slug
curl -u user:pass -X POST https://strings.witcc.dev/api/paste \
-H "Content-Type: application/json" \
-d '{"content": "print(1)", "filename": "test.py", "slug": "my-snippet"}'
# Pipe a file
cat myfile.rs | curl -u user:pass -X POST https://strings.witcc.dev/api/paste \
-H "X-Filename: myfile.rs" \
--data-binary @-