Merge pull request #285 from STRML/fixRestApiRootTypo
Fix a typo in `app.boot` caused by the change from restBasePath to restApiRoot.
This commit is contained in:
commit
d0c87d3420
|
@ -455,10 +455,10 @@ app.boot = function(options) {
|
|||
app.set('port', appConfig.port);
|
||||
}
|
||||
|
||||
assert(appConfig.restApiRoot !== undefined, 'app.restBasePath is required');
|
||||
assert(typeof appConfig.restApiRoot === 'string', 'app.restBasePath must be a string');
|
||||
assert(/^\//.test(appConfig.restApiRoot), 'app.restBasePath must start with "/"');
|
||||
app.set('restApiRoot', appConfig.restBasePath);
|
||||
assert(appConfig.restApiRoot !== undefined, 'app.restApiRoot is required');
|
||||
assert(typeof appConfig.restApiRoot === 'string', 'app.restApiRoot must be a string');
|
||||
assert(/^\//.test(appConfig.restApiRoot), 'app.restApiRoot must start with "/"');
|
||||
app.set('restApiRoot', appConfig.restApiRoot);
|
||||
|
||||
for(var configKey in appConfig) {
|
||||
var cur = app.get(configKey);
|
||||
|
|
Loading…
Reference in New Issue