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(); }); });