diff --git a/lib/Parse.js b/lib/Parse.js index 3cbd7f6..e51f513 100644 --- a/lib/Parse.js +++ b/lib/Parse.js @@ -25,9 +25,9 @@ Parse.prototype = { // get an object from the class store find: function (className, query, callback) { if (typeof query === 'string') { - parseRequest.call(this, 'GET', '/1/' + className + '/' + query, null, callback); + parseRequest.call(this, 'GET', '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/1/classes/' + className + '/' + query, null, callback); } else { - parseRequest.call(this, 'GET', '/1/' + className, { where: JSON.stringify(query) }, callback); + parseRequest.call(this, 'GET', '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/1/classes/' + className, { where: JSON.stringify(query) }, callback); } }, @@ -206,4 +206,4 @@ function parseRequest(method, path, data, callback, contentType) { req.on('error', function (err) { callback && callback(err); }); -} \ No newline at end of file +}