Skip to content

Commit

Permalink
Switch base url to api.close.com
Browse files Browse the repository at this point in the history
  • Loading branch information
eengoron authored and taylorbrooks committed Mar 6, 2019
1 parent 574a2b7 commit 8d77036
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions lib/close.io.js
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,7 @@ Closeio.prototype._request = function(options) {

Closeio.prototype._post = function(path, options) {
options = {
uri: 'https://app.close.io/api/v1' + path,
uri: 'https://api.close.com/api/v1' + path,
body: JSON.stringify(options),
headers: {
'Content-type': 'application/json'
Expand All @@ -308,7 +308,7 @@ Closeio.prototype._post = function(path, options) {

Closeio.prototype._get = function(path, parameters) {
var options = {
uri: 'https://app.close.io/api/v1' + path,
uri: 'https://api.close.com/api/v1' + path,
method: 'GET',
qs: parameters
};
Expand All @@ -317,7 +317,7 @@ Closeio.prototype._get = function(path, parameters) {

Closeio.prototype._put = function(path, options) {
options = {
uri: 'https://app.close.io/api/v1' + path,
uri: 'https://api.close.com/api/v1' + path,
body: JSON.stringify(options),
headers: {
'Content-type': 'application/json'
Expand All @@ -329,7 +329,7 @@ Closeio.prototype._put = function(path, options) {

Closeio.prototype._delete = function(path) {
var options = {
uri: 'https://app.close.io/api/v1' + path,
uri: 'https://api.close.com/api/v1' + path,
method: 'DELETE'
};
return this._request(options);
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "close.io",
"preferGlobal": "false",
"version": "1.2.0",
"version": "1.2.1",
"author": "John Wehr <[email protected]>",
"description": "",
"contributors": [
Expand Down

0 comments on commit 8d77036

Please sign in to comment.