0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-03-11 02:12:21 -05:00
ghost/core/server/web/api
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
..
canary Added thumbnail upload endpoint to Media API 2021-11-09 16:07:23 +04:00
middleware Renamed whitelist -> allowlist 2021-11-08 16:09:30 +04:00
testmode Added guards against parentPort being null 2021-06-29 12:14:48 +01:00
v2 Replaced i18n.t w/ tpl in middleware.js in api/v2/admin 2021-10-05 09:58:58 +01:00
v3 Replaced i18n.t w/ tpl in middleware.js in api/v3/admin 2021-10-05 09:58:58 +01:00
app.js Improved Ghost boot time and memory usage by lazy loading routes 2021-10-15 17:52:07 +02:00
index.js Renamed app related files+variables for clarity 2020-04-27 17:50:08 +01:00