mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-06 22:40:14 -05:00
Removed filesAPI
GA labs flag
refs https://github.com/TryGhost/Team/issues/1258 - files API is GA so labs flag and conditional access to files API routes is no longer necessary
This commit is contained in:
parent
ebae98f538
commit
0de2c7e261
3 changed files with 1 additions and 3 deletions
|
@ -120,7 +120,7 @@ module.exports = function setupSiteApp(options = {}) {
|
||||||
// Serve blog media using the storage adapter
|
// Serve blog media using the storage adapter
|
||||||
siteApp.use(STATIC_MEDIA_URL_PREFIX, storage.getStorage('media').serve());
|
siteApp.use(STATIC_MEDIA_URL_PREFIX, storage.getStorage('media').serve());
|
||||||
// Serve blog files using the storage adapter
|
// Serve blog files using the storage adapter
|
||||||
siteApp.use(STATIC_FILES_URL_PREFIX, labs.enabledMiddleware('filesAPI'), storage.getStorage('files').serve());
|
siteApp.use(STATIC_FILES_URL_PREFIX, storage.getStorage('files').serve());
|
||||||
|
|
||||||
// Global handling for member session, ensures a member is logged in to the frontend
|
// Global handling for member session, ensures a member is logged in to the frontend
|
||||||
siteApp.use(membersService.middleware.loadMemberSession);
|
siteApp.use(membersService.middleware.loadMemberSession);
|
||||||
|
|
|
@ -252,7 +252,6 @@ module.exports = function apiRoutes() {
|
||||||
|
|
||||||
// ## files
|
// ## files
|
||||||
router.post('/files/upload',
|
router.post('/files/upload',
|
||||||
labs.enabledMiddleware('filesAPI'),
|
|
||||||
mw.authAdminApi,
|
mw.authAdminApi,
|
||||||
apiMw.upload.single('file'),
|
apiMw.upload.single('file'),
|
||||||
http(api.files.upload)
|
http(api.files.upload)
|
||||||
|
|
|
@ -15,7 +15,6 @@ const messages = {
|
||||||
|
|
||||||
// flags in this list always return `true`, allows quick global enable prior to full flag removal
|
// flags in this list always return `true`, allows quick global enable prior to full flag removal
|
||||||
const GA_FEATURES = [
|
const GA_FEATURES = [
|
||||||
'filesAPI',
|
|
||||||
'fileCard',
|
'fileCard',
|
||||||
'headerCard'
|
'headerCard'
|
||||||
];
|
];
|
||||||
|
|
Loading…
Reference in a new issue