mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-07-19 01:17:18 +00:00
refactor(server) middleware
This commit is contained in:
parent
3b86ca97d3
commit
05ade24252
2 changed files with 49 additions and 42 deletions
|
|
@ -201,6 +201,7 @@
|
|||
var ret, name, params, isAuth, isFS;
|
||||
|
||||
if (request && response) {
|
||||
ret = true;
|
||||
name = main.getPathName(request);
|
||||
isAuth = Util.strCmp(name, ['/auth', '/auth/github']);
|
||||
isFS = Util.strCmp(name, '/') || Util.isContainStrAtBegin(name, FS);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue