Skip to content

Commit 5923347

Browse files
committed
Merge pull request #1235 from drew-gross/config-out-of-experimental
Tested with the dashboard, it now works great.
2 parents 74b847f + 75f49b4 commit 5923347

File tree

2 files changed

+5
-10
lines changed

2 files changed

+5
-10
lines changed

src/ParseServer.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -228,12 +228,9 @@ class ParseServer {
228228
new LogsRouter(),
229229
new IAPValidationRouter(),
230230
new FeaturesRouter(),
231+
new GlobalConfigRouter(),
231232
];
232233

233-
if (process.env.PARSE_EXPERIMENTAL_CONFIG_ENABLED || process.env.TESTING) {
234-
routers.push(new GlobalConfigRouter());
235-
}
236-
237234
if (process.env.PARSE_EXPERIMENTAL_HOOKS_ENABLED || process.env.TESTING) {
238235
routers.push(new HooksRouter());
239236
}

src/Routers/FeaturesRouter.js

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,15 @@ import { version } from '../../package.json';
22
import PromiseRouter from '../PromiseRouter';
33
import * as middleware from "../middlewares";
44

5-
const isGlobalConfigEnabled = !!(process.env.PARSE_EXPERIMENTAL_CONFIG_ENABLED || process.env.TESTING)
6-
75
export class FeaturesRouter extends PromiseRouter {
86
mountRoutes() {
97
this.route('GET','/serverInfo', middleware.promiseEnforceMasterKeyAccess, req => {
108
const features = {
119
globalConfig: {
12-
create: isGlobalConfigEnabled,
13-
read: isGlobalConfigEnabled,
14-
update: isGlobalConfigEnabled,
15-
delete: isGlobalConfigEnabled,
10+
create: true,
11+
read: true,
12+
update: true,
13+
delete: true,
1614
},
1715
hooks: {
1816
create: false,

0 commit comments

Comments
 (0)