totaly refactored and leave in commander.js just generation of json of directory listing

This commit is contained in:
coderaiser 2013-02-24 09:48:10 -05:00
parent f4b2bc97eb
commit ad8345ff34
2 changed files with 6 additions and 2 deletions

View file

@ -171,6 +171,9 @@ for now it's much simplier.
* Added ability to disable browser cache from config.json.
* Totaly refactored and leave in commander.js just
generation of json of directory listing.
2012.12.12, Version 0.1.8

View file

@ -15,6 +15,7 @@
var main = global.cloudcmd.main,
Util = main.util,
CloudFunc = main.cloudfunc,
OK = 200,
Header = main.generateHeaders({
name:'api.json'
@ -77,7 +78,7 @@
lCmd = pParams.command,
lMethod = pParams.method;
if( Util.isContainStr(lCmd, 'fs') )
if( Util.isContainStr(lCmd, CloudFunc.FS) )
lResult = onFS({
request : pParams.request,
response: pParams.response,
@ -107,7 +108,7 @@
function onFS(pParams){
var lResult,
lMethod = pParams.method,
lName = Util.removeStr(pParams.name, 'fs');
lName = Util.removeStr(pParams.name, CloudFunc.FS) || '/';
switch(lMethod){
case 'GET':