mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-07-18 00:47:01 +00:00
totaly refactored and leave in commander.js just generation of json of directory listing
This commit is contained in:
parent
f4b2bc97eb
commit
ad8345ff34
2 changed files with 6 additions and 2 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
|
|
@ -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':
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue