部署完成后的测试命令
1. 健康检查
curl https://你的render域名.onrender.com/
2. 截图测试
curl -X POST https://你的render域名.onrender.com/screenshot
-H "Content-Type: application/json"
-d '{"url": "https://google.com", "width": 1280, "height": 720}'
--output test-screenshot.jpg
3. 如果在Windows PowerShell中测试
Invoke-RestMethod -Uri "https://你的render域名.onrender.com/screenshot" -Method POST
-ContentType "application/json" -Body '{"url": "https://google.com"}'
-OutFile "screenshot.jpg"