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:
parent
ab9a470623
commit
fa9d2a4105
1 changed files with 3 additions and 2 deletions
|
@ -23,8 +23,9 @@ module.exports = {
|
|||
|
||||
uploadThumbnail: {
|
||||
permissions: false,
|
||||
options: [
|
||||
'url'
|
||||
data: [
|
||||
'url',
|
||||
'ref'
|
||||
],
|
||||
async query(frame) {
|
||||
const mediaStorage = storage.getStorage('media');
|
||||
|
|
Loading…
Add table
Reference in a new issue