mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-01 23:37:43 +03:00
Added "mediaAPI" labs flag
refs https://github.com/TryGhost/Toolbox/issues/95 - A flag go control the Media API alpha feature
This commit is contained in:
parent
091240db48
commit
2dac3d489f
@ -238,6 +238,7 @@ module.exports = function apiRoutes() {
|
||||
|
||||
// ## media
|
||||
router.post('/media/upload',
|
||||
labs.enabledMiddleware('mediaAPI'),
|
||||
mw.authAdminApi,
|
||||
apiMw.upload.media('file', 'thumbnail'),
|
||||
apiMw.upload.mediaValidation({type: 'media'}),
|
||||
|
@ -29,6 +29,7 @@ const ALPHA_FEATURES = [
|
||||
'oauthLogin',
|
||||
'membersActivity',
|
||||
'cardSettingsPanel',
|
||||
'mediaAPI',
|
||||
'membersAutoLogin'
|
||||
];
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user