From b0afbe9fba0e0180bdb42d05252513b1ef121376 Mon Sep 17 00:00:00 2001 From: Esteban Ordano Date: Mon, 10 Nov 2014 13:09:43 -0300 Subject: [PATCH] Change endpoint --- js/plugins/InsightStorage.js | 2 +- test/plugin.insight.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/js/plugins/InsightStorage.js b/js/plugins/InsightStorage.js index f360ce439..030775711 100644 --- a/js/plugins/InsightStorage.js +++ b/js/plugins/InsightStorage.js @@ -132,7 +132,7 @@ InsightStorage.prototype._changePassphrase = function(callback) { InsightStorage.prototype.setItem = function(name, value, callback) { var passphrase = this.getPassphrase(); var authHeader = new buffers.Buffer(this.email + ':' + passphrase).toString('base64'); - var registerUrl = this.storeUrl + '/register'; + var registerUrl = this.storeUrl + '/save'; this.request.post({ url: registerUrl, headers: {'Authorization': authHeader}, diff --git a/test/plugin.insight.js b/test/plugin.insight.js index 77d323c96..5f65942ea 100644 --- a/test/plugin.insight.js +++ b/test/plugin.insight.js @@ -66,7 +66,7 @@ describe('insight storage plugin', function() { storage.setItem(namespace, data, function(err) { assert(!err); - assert(requestMock.post.firstCall.args[0].url.indexOf('register') !== -1); + assert(requestMock.post.firstCall.args[0].url.indexOf('save') !== -1); return done(); }); });