💡 使用示例
1. 部署单页HTML站点
curl -X POST "https://pages.xingshulin.com/html/deploy" \
-H "Content-Type: text/html" \
-H "x-token: your-secret-token" \
-H "htmlkey: hello-world" \
-H "title: Hello World Site" \
--data-raw "<!DOCTYPE html><html><body><h1>Hello!</h1></body></html>"
2. 访问单页HTML站点
curl "https://pages.xingshulin.com/hello-world"
3. 部署ZIP压缩包(多文件应用)
curl -X POST "https://pages.xingshulin.com/html/deploy-zip" \
-H "Content-Type: application/zip" \
-H "x-token: your-secret-token" \
-H "htmlkey: my-webapp" \
-H "title: My Web Application" \
--data-binary "@./my-webapp.zip"
4. 访问ZIP部署的应用
curl "https://pages.xingshulin.com/app/my-webapp/"
5. 删除站点
curl -X DELETE "https://pages.xingshulin.com/html/delete?siteName=hello-world" \
-H "x-token: your-secret-token"