Skip to content

Release 1.0.0

Latest
Compare
Choose a tag to compare
@Panyoujies Panyoujies released this 09 Mar 02:24

简单图册只提供api方式上传

curl

curl --request POST \ --url http://localhost:3000/upload \ --header 'Authorization: Bearer bomaos' \ --header 'content-type: multipart/form-data' \ --form 'image=@/t018241d1b526a93d7b.jpg'

返回数据

{ "code": 0, "msg": "Image uploaded successfully", "url": "http://localhost:3000/image/192a86257721e89952aaa2a8db2d2bb7.jpg" }