Skip to content
This repository has been archived by the owner on Jun 11, 2024. It is now read-only.

Commit

Permalink
fix(config): resolve default value for restApiRoot
Browse files Browse the repository at this point in the history
  • Loading branch information
KalleV committed Oct 25, 2018
1 parent 9d12f0b commit e47e807
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/services.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@ class Services {
url: 'http://127.0.0.1'
},
https: {},
ServicePath: '/', // TODO: deprecated on next major release
restApiRoot: '/',
logger: console,
socket: {
Expand Down Expand Up @@ -152,7 +151,7 @@ class Services {
*/
start() {
// TODO: ServicePath option is deprecated on next major release
let mountPoint = this._options.restApiRoot || this._options.ServicePath;
let mountPoint = this._options.ServicePath || this._options.restApiRoot;

if (!this._initialized) {
this.initialize();
Expand Down

0 comments on commit e47e807

Please sign in to comment.