Fix a typo in `app.boot`.
This typo was caused by the change from restBasePath to restApiRoot. Signed-off-by: Samuel Reed <sam@tixelated.com>
This commit is contained in:
parent
227c2d05cd
commit
e625028486
|
@ -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