Skip to content

Commit 8ddaf33

Browse files
committed
documentation
1 parent 2146a13 commit 8ddaf33

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

src/Parse.js

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,16 @@ const Parse = {
8080
CoreManager.setLocalDatastoreController(controller);
8181
},
8282

83+
/**
84+
* Returns information regarding the current server's health
85+
*
86+
* @returns {Promise}
87+
* @static
88+
*/
89+
getServerHealth() {
90+
return CoreManager.getRESTController().request('GET', 'health');
91+
},
92+
8393
/**
8494
* @member {string} Parse.applicationId
8595
* @static
@@ -228,9 +238,6 @@ Parse.LiveQuery = require('./ParseLiveQuery').default;
228238
Parse.LiveQueryClient = require('./LiveQueryClient').default;
229239
Parse.IndexedDB = require('./IndexedDBStorageController');
230240

231-
Parse.getServerHealth = function () {
232-
return CoreManager.getRESTController().request('GET', 'health');
233-
};
234241
Parse._request = function (...args) {
235242
return CoreManager.getRESTController().request.apply(null, args);
236243
};

0 commit comments

Comments
 (0)