feat: Add zones for rate limiting by ip, user, session, global (#8508)
This commit is contained in:
@@ -444,9 +444,11 @@ class ParseServer {
|
||||
|
||||
function addParseCloud() {
|
||||
const ParseCloud = require('./cloud-code/Parse.Cloud');
|
||||
const ParseServer = require('./cloud-code/Parse.Server');
|
||||
Object.defineProperty(Parse, 'Server', {
|
||||
get() {
|
||||
return Config.get(Parse.applicationId);
|
||||
const conf = Config.get(Parse.applicationId);
|
||||
return { ...conf, ...ParseServer };
|
||||
},
|
||||
set(newVal) {
|
||||
newVal.appId = Parse.applicationId;
|
||||
|
||||
Reference in New Issue
Block a user