mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-07-20 01:47:35 +00:00
refactored
This commit is contained in:
parent
3d34f15f4d
commit
e3789e3eb8
7 changed files with 205 additions and 209 deletions
|
|
@ -15,7 +15,7 @@
|
|||
Util = main.util,
|
||||
update = main.update,
|
||||
|
||||
server = main.server,
|
||||
server = main.librequire('server'),
|
||||
Minify = main.minify,
|
||||
Config = main.config,
|
||||
|
||||
|
|
@ -186,13 +186,13 @@
|
|||
'-> auth');
|
||||
|
||||
pParams.name = main.HTMLDIR + lName + '.html';
|
||||
lRet = server.sendFile(pParams);
|
||||
lRet = main.sendFile(pParams);
|
||||
}else if( Util.strCmp(lName, '/auth/github') ){
|
||||
Util.log('* Routing' +
|
||||
'-> github');
|
||||
|
||||
pParams.name = main.HTMLDIR + lName + '.html';
|
||||
lRet = server.sendFile(pParams);
|
||||
lRet = main.sendFile(pParams);
|
||||
}else if( Util.isContainStr(lName, CloudFunc.FS) ||
|
||||
Util.isContainStr(lName, CloudFunc.NO_JS ) ||
|
||||
Util.strCmp(lName, '/') ||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue