POST /upload
支持多种上传方式:
curl -X POST -F "image=@example.jpg" http://imghub.did.fm/upload
curl -X POST -H "Content-Type: image/jpeg" --data-binary @example.jpg http://imghub.did.fm/upload
curl -X POST -H "Content-Type: application/json" \
-d '{"image": "data:image/jpeg;base64,/9j/4AAQ..."}' \
http://imghub.did.fm/upload
curl -X POST -H "Content-Type: text/plain" \ -d "data:image/jpeg;base64,/9j/4AAQ..." \ http://imghub.did.fm/upload
GET /{filename}
curl http://imghub.did.fm/abc123.jpg
GET /info?filename={filename}
curl "http://imghub.did.fm/info?filename=abc123.jpg"
GET /health
curl http://imghub.did.fm/health