0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-24 23:48:13 -05:00
ghost/core/server
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
..
adapters Added ability to delete existing files through storage adapters 2021-11-09 16:07:23 +04:00
api Added thumbnail upload endpoint to Media API 2021-11-09 16:07:23 +04:00
data Moved launchComplete user setting as global editor setting (#13703) 2021-11-04 18:03:51 +05:30
lib Renamed getLocalFileStoragePath 2021-11-05 17:17:18 +04:00
models Inlined package requires to save boot time and memory 2021-10-22 09:57:59 +02:00
services Fixed ThemeStorage inheritance 2021-11-05 17:17:18 +04:00
views
web Added thumbnail upload endpoint to Media API 2021-11-09 16:07:23 +04:00
analytics-events.js
ghost-server.js
notify.js
overrides.js Set global Luxon timezone override to UTC 2021-10-20 09:19:29 +02:00
run-update-check.js Removed remaining usage of i18n & translation file 2021-10-15 11:39:07 +01:00
update-check.js Inlined package requires to save boot time and memory 2021-10-22 09:57:59 +02:00