Click the "View Gallery" tab to load images
https://img-store-worker.floralc2ce.workers.dev
Save a new image URL to the store. Returns a unique ID for the image.
/
{
"imgURL": "https://example.com/image.jpg"
}
{
"success": true,
"id": "550e8400-e29b-41d4-a716-446655440000",
"imgURL": "https://example.com/image.jpg"
}
| Status Code | Response | Description |
|---|---|---|
| 400 | {"error": "imgURL is required"} |
Missing imgURL field in request body |
| 400 | {"error": "Invalid JSON or request failed"} |
Invalid JSON or parsing error |
Retrieve all stored images as a JSON array.
/all
[
{
"id": "550e8400-e29b-41d4-a716-446655440000",
"imgURL": "https://example.com/image.jpg",
"createdAt": 1678901234567
},
{
"id": "660e8400-e29b-41d4-a716-446655440001",
"imgURL": "https://example.com/photo.png",
"createdAt": 1678901234678
}
]
[]
Permanently delete all stored images.
/all
{
"success": true,
"message": "All entries deleted"
}
Delete a specific image by its ID.
/id/{image_id}
{
"success": true,
"message": "Deleted 550e8400-e29b-41d4-a716-446655440000"
}
| 400 | {"error": "Missing id"} |
Image ID not provided in URL |
Access an image by ID and get redirected to the actual image URL.
/{image_id}
| Status Code | Description |
|---|---|
| 302 | Redirects to the actual image URL |
| 400 | {"error": "Missing image id in URL"} |
| 404 | {"error": "Image not found"} |
All endpoints support CORS preflight requests.
Access-Control-Allow-Origin: * Access-Control-Allow-Methods: GET, POST, DELETE, OPTIONS Access-Control-Allow-Headers: Content-Type Access-Control-Max-Age: 86400