上传 HTML 并获取访问链接,有效期 3 天
POST /upload
Content-Type: application/json
{
"id": "my-page-123",
"html": "<html>...</html>"
}
POST /upload?id=my-page-123
Content-Type: text/html
<html>...</html>
GET /:id
例如: GET /my-page-123
# 上传
curl -X POST https://your-worker.workers.dev/upload \
-H "Content-Type: application/json" \
-d '{"id":"test123","html":"<h1>Hello</h1>"}'
# 访问
curl https://your-worker.workers.dev/test123