mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-07-19 01:17:18 +00:00
minor changes
This commit is contained in:
parent
4d5d121396
commit
5f29cef524
3 changed files with 16 additions and 7 deletions
|
|
@ -14,7 +14,8 @@
|
|||
* @pConnectionData {request, responce}
|
||||
*/
|
||||
exports.rest = function(pConnectionData){
|
||||
var lReq = pConnectionData.request,
|
||||
var lRet = false,
|
||||
lReq = pConnectionData.request,
|
||||
lRes = pConnectionData.response,
|
||||
lUrl = lReq.url,
|
||||
lMethod = lReq.method;
|
||||
|
|
@ -22,8 +23,12 @@
|
|||
console.log(lUrl);
|
||||
console.log(lMethod);
|
||||
|
||||
if( Util.isContainStr(lUrl, APIURL) )
|
||||
if( Util.isContainStr(lUrl, APIURL) ){
|
||||
console.log('api !!!!!!!!!!!! ');
|
||||
return true;
|
||||
}
|
||||
|
||||
return lRet;
|
||||
/*
|
||||
switch(req.method){
|
||||
case 'GET':
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue