Added ability to set server url for Parse JS client SDK whithin ParseServer constructor

This commit is contained in:
Andrew Mihailov
2016-02-01 19:23:05 +02:00
parent 25a0fbeaee
commit a65f2d13ab
2 changed files with 8 additions and 2 deletions

View File

@@ -72,6 +72,9 @@ function ParseServer(args) {
// Initialize the node client SDK automatically
Parse.initialize(args.appId, args.javascriptKey || '', args.masterKey);
if(args.serverURL) {
Parse.serverURL = args.serverURL;
}
// This app serves the Parse API directly.
// It's the equivalent of https://api.parse.com/1 in the hosted Parse API.