mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-03 03:55:26 +03:00
Added Media and Files APIs to API key allowlist
refs https://github.com/TryGhost/Toolbox/issues/219 - These two APIs similarly to Images API should be accessible by the Admin-API SDK. Opens up a way to write custom scripts uploading files and media
This commit is contained in:
parent
fbb23f4e66
commit
1cc38733ba
@ -31,6 +31,8 @@ const notImplemented = function (req, res, next) {
|
|||||||
members: ['GET', 'PUT', 'DELETE', 'POST'],
|
members: ['GET', 'PUT', 'DELETE', 'POST'],
|
||||||
config: ['GET'],
|
config: ['GET'],
|
||||||
schedules: ['PUT'],
|
schedules: ['PUT'],
|
||||||
|
files: ['POST'],
|
||||||
|
media: ['POST'],
|
||||||
db: ['POST']
|
db: ['POST']
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user