diff --git a/cloudcmd.js b/cloudcmd.js index 93130e83..e45d8f1e 100644 --- a/cloudcmd.js +++ b/cloudcmd.js @@ -23,7 +23,7 @@ REQUEST = 'request', RESPONSE = 'response', - INDEX = main.INDEX, + INDEX = HTMLDIR + 'index.html', CONFIG_PATH = JSONDIR + 'config.json', FS = CloudFunc.FS; diff --git a/lib/server/commander.js b/lib/server/commander.js index ca2411c5..3a753920 100644 --- a/lib/server/commander.js +++ b/lib/server/commander.js @@ -114,7 +114,7 @@ * @param pFiles - array of files of current directory */ function fillJSON(pParams){ - var lRet = checkParams(pParams, ['files', 'stats', 'path']); + var lRet = Util.checkObjTrue(pParams, ['files', 'stats', 'path']); if(lRet) { diff --git a/lib/server/main.js b/lib/server/main.js index fb80efb8..9ed9c925 100644 --- a/lib/server/main.js +++ b/lib/server/main.js @@ -47,7 +47,6 @@ exports.DIR = DIR = path.normalize(LIBDIR + '../'), exports.HTMLDIR = HTMLDIR = DIR + 'html' + SLASH, exports.JSONDIR = JSONDIR = DIR + 'json' + SLASH, - exports.INDEX = HTMLDIR + 'index.html', /* Functions */ exports.require = mrequire,