mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-07-19 01:17:18 +00:00
chore(rest) add " "
This commit is contained in:
parent
29a45a6c0e
commit
331385f216
1 changed files with 6 additions and 6 deletions
|
|
@ -73,7 +73,7 @@
|
|||
*/
|
||||
function sendData(pParams) {
|
||||
var p, ret = main.checkParams(pParams);
|
||||
if (ret){
|
||||
if (ret) {
|
||||
p = pParams;
|
||||
ret = Util.isContainStrAtBegin(p.name, CloudFunc.FS);
|
||||
|
||||
|
|
@ -83,13 +83,13 @@
|
|||
if (p.name[0] === '/')
|
||||
p.command = Util.removeStrOneTime(p.name, '/');
|
||||
|
||||
switch(p.request.method){
|
||||
switch(p.request.method) {
|
||||
case 'GET':
|
||||
ret = onGET(pParams);
|
||||
break;
|
||||
|
||||
case 'PUT':
|
||||
getBody(p.request, function(pBody){
|
||||
getBody(p.request, function(pBody) {
|
||||
p.body = pBody;
|
||||
onPUT(p);
|
||||
});
|
||||
|
|
@ -104,7 +104,7 @@
|
|||
var p, lQuery, isGet,
|
||||
ret = main.checkParams(params);
|
||||
|
||||
if (ret){
|
||||
if (ret) {
|
||||
p = params;
|
||||
lQuery = main.getQuery(p.request);
|
||||
p.name = Util.removeStrOneTime(p.name, CloudFunc.FS) || '/';
|
||||
|
|
@ -204,7 +204,7 @@
|
|||
|
||||
case 'DELETE':
|
||||
if (lQuery === 'dir')
|
||||
fs.rmdir(p.name, function(pError){
|
||||
fs.rmdir(p.name, function(pError) {
|
||||
checkSendError(pError, params, function() {
|
||||
sendMsg(params, 'delete', p.name);
|
||||
});
|
||||
|
|
@ -359,7 +359,7 @@
|
|||
|
||||
switch(lCmd) {
|
||||
case 'auth':
|
||||
main.auth(p.body, function(pTocken){
|
||||
main.auth(p.body, function(pTocken) {
|
||||
send({
|
||||
response: p.response,
|
||||
data: pTocken
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue