Merge pull request #132 from r4zzz4k/master
Added ability to set server url for Parse JS client SDK
This commit is contained in:
3
index.js
3
index.js
@@ -82,6 +82,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.
|
||||
|
||||
Reference in New Issue
Block a user