Hide /config behind PARSE_EXPERIMENTAL_CONFIG_ENABLED flag
This commit is contained in:
@@ -41,6 +41,6 @@ function getGlobalConfig(req) {
|
||||
}
|
||||
|
||||
router.route('GET', '/config', getGlobalConfig);
|
||||
router.route('POST', '/config', updateGlobalConfig);
|
||||
router.route('PUT', '/config', updateGlobalConfig);
|
||||
|
||||
module.exports = router;
|
||||
|
||||
@@ -121,7 +121,9 @@ function ParseServer(args) {
|
||||
router.merge(require('./installations'));
|
||||
router.merge(require('./functions'));
|
||||
router.merge(require('./schemas'));
|
||||
router.merge(require('./global_config'));
|
||||
if (process.env.PARSE_EXPERIMENTAL_CONFIG_ENABLED) {
|
||||
router.merge(require('./global_config'));
|
||||
}
|
||||
|
||||
batch.mountOnto(router);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user