From e6250284865116f2824e4c3a972d8e8d49f1eedf Mon Sep 17 00:00:00 2001 From: Samuel Reed Date: Tue, 27 May 2014 18:10:04 +0800 Subject: [PATCH] Fix a typo in `app.boot`. This typo was caused by the change from restBasePath to restApiRoot. Signed-off-by: Samuel Reed --- lib/application.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/application.js b/lib/application.js index 3ceed368..928d7708 100644 --- a/lib/application.js +++ b/lib/application.js @@ -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);