How do I upload a file?
To upload a file, send a POST request to the /api/upload endpoint. Example:
curl -X POST https://sharey.org/api/upload \
-F "files[]=@/path/to/your/file.txt"
How do I create a paste?
To create a paste, send a POST request to the /api/paste endpoint. Example:
curl -X POST https://sharey.org/api/paste \
-H "Content-Type: application/json" \
-d '{"content": "This is the content of my paste."}'