Skip to content

Commit

Permalink
fix(api-core): allow id to be in the config
Browse files Browse the repository at this point in the history
  • Loading branch information
TheSharpieOne committed May 4, 2018
1 parent 686fdc6 commit 55b55af
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/api-core/src/ms.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ export default class AvMicroservice extends AvApi {

// override aries 1 url concatentation
getUrl(config, id = '') {
const { path, name } = this.config(config);
const { path, name, id: configId } = this.config(config);
let parts = [path, name];
if (id) {
parts = [path, name, id];
if (id || configId) {
parts = [path, name, id || configId];
}
return parts
.join('/')
Expand Down

0 comments on commit 55b55af

Please sign in to comment.