0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-24 23:48:13 -05:00
ghost/core/server/web
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
..
admin Fixed ETag header for admin templates not changing between versions (#13680) 2021-10-22 14:25:58 +01:00
api Added thumbnail upload endpoint to Media API 2021-11-09 16:07:23 +04:00
members Removed references to Offers labs flag (#13709) 2021-11-03 17:11:48 +02:00
oauth Inlined package requires to save boot time and memory 2021-10-22 09:57:59 +02:00
parent Moved server/web/site to frontend/web 2021-10-21 19:28:18 +01:00
shared Used DynamicRedirectManager for Custom Redirects 2021-11-03 07:41:55 +13:00
index.js
well-known.js Inlined package requires to save boot time and memory 2021-10-22 09:57:59 +02:00