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:
Kevin Ansfield 2022-01-04 14:56:07 +00:00
parent ebae98f538
commit 0de2c7e261
3 changed files with 1 additions and 3 deletions

View File

@ -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);

View File

@ -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)

View File

@ -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'
];