From 19d857ac226d9de2b36a776dc9c7b58eca2a5afa Mon Sep 17 00:00:00 2001 From: Mike Larsson Date: Fri, 17 May 2013 11:14:53 -0400 Subject: [PATCH] Remove /v2/ as that should now be part of config url --- openbadger.js | 2 +- test/openbadger.test.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/openbadger.js b/openbadger.js index d29a113..e3e3f62 100644 --- a/openbadger.js +++ b/openbadger.js @@ -97,7 +97,7 @@ var openbadger = new Api(ENDPOINT, { }, getOrgs: function getOrgs (query, callback) { - this.get('/v2/issuers/', function(err, data) { + this.get('/issuers/', function(err, data) { if (err) return callback(err, data); diff --git a/test/openbadger.test.js b/test/openbadger.test.js index ef9a28a..7464958 100644 --- a/test/openbadger.test.js +++ b/test/openbadger.test.js @@ -243,7 +243,7 @@ test('getIssuers', function(t) { t.same(data.orgs.length, 2, 'data length'); var org = data.orgs[0]; t.ok(org.url && org.name, 'needed data'); - t.ok(getStub.calledWithMatch('/v2/issuers'), 'endpoint'); + t.ok(getStub.calledWithMatch('/issuers'), 'endpoint'); t.end(); }); });