POST /api/share
Creates a new share. Accepts a JSON body with a required "content" field and optional "command" and "is_hidden" fields.
Example Body:
{
"content": "your text output here",
"command": "your_command (optional)",
"is_hidden": false (optional)
}
GET /api/outputs
Returns a JSON list of all non-hidden shares with their full content.
GET /api/output/{public_id}
Returns all details for a single share, including raw and HTML content.
POST /api/output/{public_id}/upvote
POST /api/output/{public_id}/downvote
Upvotes or downvotes a share. No request body is needed.