mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-04 17:04:59 +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
|
// ## media
|
||||||
router.post('/media/upload',
|
router.post('/media/upload',
|
||||||
|
labs.enabledMiddleware('mediaAPI'),
|
||||||
mw.authAdminApi,
|
mw.authAdminApi,
|
||||||
apiMw.upload.media('file', 'thumbnail'),
|
apiMw.upload.media('file', 'thumbnail'),
|
||||||
apiMw.upload.mediaValidation({type: 'media'}),
|
apiMw.upload.mediaValidation({type: 'media'}),
|
||||||
|
@ -29,6 +29,7 @@ const ALPHA_FEATURES = [
|
|||||||
'oauthLogin',
|
'oauthLogin',
|
||||||
'membersActivity',
|
'membersActivity',
|
||||||
'cardSettingsPanel',
|
'cardSettingsPanel',
|
||||||
|
'mediaAPI',
|
||||||
'membersAutoLogin'
|
'membersAutoLogin'
|
||||||
];
|
];
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user