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:
Samuel Reed 2014-05-27 18:10:04 +08:00
parent 227c2d05cd
commit e625028486
1 changed files with 4 additions and 4 deletions

View File

@ -455,10 +455,10 @@ app.boot = function(options) {
app.set('port', appConfig.port); app.set('port', appConfig.port);
} }
assert(appConfig.restApiRoot !== undefined, 'app.restBasePath is required'); assert(appConfig.restApiRoot !== undefined, 'app.restApiRoot is required');
assert(typeof appConfig.restApiRoot === 'string', 'app.restBasePath must be a string'); assert(typeof appConfig.restApiRoot === 'string', 'app.restApiRoot must be a string');
assert(/^\//.test(appConfig.restApiRoot), 'app.restBasePath must start with "/"'); assert(/^\//.test(appConfig.restApiRoot), 'app.restApiRoot must start with "/"');
app.set('restApiRoot', appConfig.restBasePath); app.set('restApiRoot', appConfig.restApiRoot);
for(var configKey in appConfig) { for(var configKey in appConfig) {
var cur = app.get(configKey); var cur = app.get(configKey);