Skip to content

Commit

Permalink
[api] Added addonsUri option to the client
Browse files Browse the repository at this point in the history
  • Loading branch information
pksunkara committed Aug 9, 2012
1 parent acaa22f commit cb991fe
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions node.js/examples/create-a-database.js
Expand Up @@ -4,6 +4,7 @@ var nj = require('../lib/client'),
var client = nj.createClient({
username: 'marak',
password: 'foofoo',
addonsUri: 'https://addons.nodejitsu.com',
remoteUri: 'https://api.nodejitsu.com'
});

Expand Down
1 change: 1 addition & 0 deletions node.js/examples/get-a-database.js
Expand Up @@ -4,6 +4,7 @@ var nj = require('../lib/client'),
var client = nj.createClient({
username: 'marak',
password: 'foofoo',
addonsUri: 'http://addons.nodejitsu.com',
remoteUri: 'http://api.nodejitsu.com'
});

Expand Down
2 changes: 1 addition & 1 deletion node.js/lib/client/client.js
Expand Up @@ -38,7 +38,7 @@ var Client = exports.Client = function (options) {
self.addons.router = JSON.parse(fs.readFileSync(__dirname + '/addons/router.json').toString());
self.addons.client = dr.createClient(self.addons.router, {
port: 80,
host: "addons.nodejitsu.com",
host: self.options.get('addonsUri'),
username: self.options.get('username'),
password: self.options.get('password')
});
Expand Down
1 change: 1 addition & 0 deletions node.js/test/macros.js
Expand Up @@ -2,6 +2,7 @@ var createClient = require('../lib/client').createClient,
client = createClient({
username: 'tester',
password: 'password',
addonsUri: 'https://addons.mockjitsu.com',
remoteUri: 'http://api.mockjitsu.com'
}),
assert = require('assert');
Expand Down

0 comments on commit cb991fe

Please sign in to comment.