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:
Miroslav Bajtoš 2014-05-28 14:56:46 +02:00
commit d0c87d3420
1 changed files with 4 additions and 4 deletions

View File

@ -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);