0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-03-11 02:12:21 -05:00
ghost/core/server/api/canary
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
..
utils Added thumbnail upload endpoint to Media API 2021-11-09 16:07:23 +04:00
actions.js
authentication.js Replaced i18n.t w/ tpl helper in authentication.js (#13402) 2021-10-04 09:54:15 +01:00
authors-public.js Replaced i18n.t w/ tpl helper (#13403) 2021-10-04 09:55:30 +01:00
config.js
custom-theme-settings.js Added API tests for custom theme settings (#13519) 2021-10-08 16:18:49 +01:00
db.js Update cache invalidation on several routes 2021-07-07 18:12:51 +02:00
email-post.js Replaced i18n.t w/ tpl helper in email-post.js and email-preview.js (#13418) 2021-10-04 09:57:08 +01:00
email-preview.js Replaced i18n.t w/ tpl helper in email-post.js and email-preview.js (#13418) 2021-10-04 09:57:08 +01:00
email.js Replaced i18n.t w/ tpl helper in email and integrations (#13424) 2021-10-04 10:02:27 +01:00
files.js Added Files API behind an alpha flag 2021-11-08 11:40:17 +04:00
identities.js Moved settings/cache to shared/settings-cache 2021-06-30 15:49:10 +01:00
images.js Made storage calls related to images use "images" feature 2021-10-21 20:22:45 +13:00
index.js Added Files API behind an alpha flag 2021-11-08 11:40:17 +04:00
integrations.js Replaced i18n.t w/ tpl helper in email and integrations (#13424) 2021-10-04 10:02:27 +01:00
invites.js Replaced i18n.t w/ tpl helper in invites.js (#13433) 2021-10-06 09:49:20 +01:00
labels.js Replaced i18n.t w/ tpl helper in invites.js (#13433) 2021-10-06 09:49:20 +01:00
mail.js Replaced i18n.t w/ tpl helper in mail.js 2021-10-05 09:43:47 +01:00
media.js Added thumbnail upload endpoint to Media API 2021-11-09 16:07:23 +04:00
members.js Fixed max-complexity-warnings for members API 2021-10-25 14:06:12 +02:00
memberSigninUrls.js Replaced i18n.t w/ tpl helper in memberSigninUrls.js (#13462) 2021-10-06 11:41:37 +01:00
membersStripeConnect.js Fixed max-complexity-warnings for stripe_connect API 2021-10-25 14:06:28 +02:00
notifications.js
oembed.js Refactored tpl to never be used in DI 2021-10-11 15:19:54 +01:00
offers.js Added 404 handling for edit Offer 2021-10-22 16:16:39 +02:00
pages-public.js Replaced i18n.t w/ tpl helper in pages-public.js 2021-10-07 09:14:15 +01:00
pages.js Replaced i18n.t w/ tpl helper in pages.js 2021-10-07 09:14:15 +01:00
posts-public.js Replaced i18n.t w/ tpl helper in core/server/api/canary/* (#13521) 2021-10-11 14:35:43 +01:00
posts.js Replaced i18n.t w/ tpl helper in posts.js (#13455) 2021-10-06 08:59:21 +01:00
preview.js Replaced i18n.t w/ tpl helper in preview.js (#13494) 2021-10-08 15:32:51 +01:00
products-public.js
products.js Replaced i18n.t w/ tpl helper in core/server/api/canary/* (#13521) 2021-10-11 14:35:43 +01:00
redirects.js Used DynamicRedirectManager for Custom Redirects 2021-11-03 07:41:55 +13:00
roles.js
schedules.js Removed method complexity in schedules API controller 2021-09-04 07:49:11 +12:00
session.js Replaced i18n with tpl core/server/api/canary/session.js (#13487) 2021-10-08 15:11:26 +01:00
settings-public.js Moved settings/cache to shared/settings-cache 2021-06-30 15:49:10 +01:00
settings.js replaced i18n with tpl (#13484) 2021-10-07 16:51:28 +01:00
site.js
slack.js Added comments to all usages of lib/common/events 2021-07-07 16:02:44 +01:00
slugs.js Replaced i18n.t w/ tpl helper in slugs.js (#13463) 2021-10-06 11:42:33 +01:00
snippets.js Removed use of i18n in snippets controllers 2021-07-19 11:08:55 +01:00
tags-public.js Replaced i18n.t w/ tpl helper in core/server/api/canary/* (#13521) 2021-10-11 14:35:43 +01:00
tags.js Replaced i18n.t w/ tpl in tags.js (#13428) 2021-10-05 10:00:00 +01:00
themes.js Removed method complexity in themes API controller 2021-09-03 20:33:28 +04:00
users.js Replaced i18n.t w/ tpl helper in core/server/api/canary/* (#13521) 2021-10-11 14:35:43 +01:00
webhooks.js Replaced i18n with tpl in webhooks.js 2021-10-07 09:16:20 +01:00