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:
Naz 2022-03-02 16:33:47 +07:00
parent fbb23f4e66
commit 1cc38733ba

View File

@ -31,6 +31,8 @@ const notImplemented = function (req, res, next) {
members: ['GET', 'PUT', 'DELETE', 'POST'],
config: ['GET'],
schedules: ['PUT'],
files: ['POST'],
media: ['POST'],
db: ['POST']
};