mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-28 14:03:48 +03: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
@ -120,7 +120,7 @@ module.exports = function setupSiteApp(options = {}) {
|
||||
// Serve blog media using the storage adapter
|
||||
siteApp.use(STATIC_MEDIA_URL_PREFIX, storage.getStorage('media').serve());
|
||||
// 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
|
||||
siteApp.use(membersService.middleware.loadMemberSession);
|
||||
|
@ -252,7 +252,6 @@ module.exports = function apiRoutes() {
|
||||
|
||||
// ## files
|
||||
router.post('/files/upload',
|
||||
labs.enabledMiddleware('filesAPI'),
|
||||
mw.authAdminApi,
|
||||
apiMw.upload.single('file'),
|
||||
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
|
||||
const GA_FEATURES = [
|
||||
'filesAPI',
|
||||
'fileCard',
|
||||
'headerCard'
|
||||
];
|
||||
|
Loading…
Reference in New Issue
Block a user