0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-10 23:36:14 -05:00
ghost/core
Naz 61b82e3ae2 Added thumbnail upload endpoint to Media API
closes https://github.com/TryGhost/Toolbox/issues/120

- Allows to update and upload brand new thumbnail images for previusly uploaded media resources
- The endpoint is available udner alpa flag as part of Admin API at `PUT /media/thumbnail/`
- As an input accepts following parameters:
- *required* `file` field containing an image file
- *required* `url` field containing parent media file URL
- *optional* `ref` as a field to put in an ID to reference the resource on the client side

- The response has following format:
```
{
  media: [{
    url: 'http://127.0.0.1:2369/content/images/1991/11/nicevideo_thumb.png'
    ref: 'unique-id-420'
  }]
}
```
2021-11-09 16:07:23 +04:00
..
client@209c06c22b Updated Admin to v4.22.0 2021-11-05 16:00:29 +00:00
frontend Added first pass of injected css for button card 2021-11-09 11:10:18 +00:00
server Added thumbnail upload endpoint to Media API 2021-11-09 16:07:23 +04:00
shared Added calloutCard labs flag 2021-11-08 17:11:35 +01:00
app.js
boot.js Initial card asset service implementation 2021-11-04 11:34:40 +00:00
bridge.js Initial card asset service implementation 2021-11-04 11:34:40 +00:00