0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-20 22:42:53 -05:00

Reworked media API thumbnail endpoint

refs https://github.com/TryGhost/Toolbox/issues/120

- Having an "options" parameter in the controller definition was missleading as if the `url` or `ref` parameters were expected as a part of the qurey parameter. These variables should be provided as a part of the request body, thus having them in "data" attribute is more accurate
This commit is contained in:
Naz 2021-11-29 13:12:47 +04:00
parent ab9a470623
commit fa9d2a4105

View file

@ -23,8 +23,9 @@ module.exports = {
uploadThumbnail: {
permissions: false,
options: [
'url'
data: [
'url',
'ref'
],
async query(frame) {
const mediaStorage = storage.getStorage('media');