Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
wuyuanyi135 committed Jan 15, 2016
1 parent 5050df3 commit 7a90baf
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions src/rest/base.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,14 @@ export class Base {
this.name = stripSlashes(name);
this.options = Object.assign({}, options);
this.connection = options.connection;
this.base = `${options.base}/${this.name}`;
delete this.options.base;


if(options.base) {
this.base = `${options.base}/${this.name}`;
delete this.options.base;
} else {
this.base = this.name;
}

normalize(this);
makeEmitting(this);
}
Expand Down

0 comments on commit 7a90baf

Please sign in to comment.