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