mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-07-20 01:47:35 +00:00
refactor(route) Util.exec(callback) -> callback
This commit is contained in:
parent
07ea970eed
commit
1bdceaac3c
1 changed files with 2 additions and 2 deletions
|
|
@ -116,7 +116,7 @@
|
|||
function route(request, response, callback) {
|
||||
var name, p, isAuth, isFS, path;
|
||||
|
||||
Util.checkArgs(arguments, ['req', 'res']);
|
||||
Util.checkArgs(arguments, ['req', 'res', 'callback']);
|
||||
|
||||
name = ponse.getPathName(request);
|
||||
isAuth = Util.strCmp(name, ['/auth', '/auth/github']);
|
||||
|
|
@ -130,7 +130,7 @@
|
|||
};
|
||||
|
||||
if (!isAuth && !isFS)
|
||||
Util.exec(callback);
|
||||
callback();
|
||||
else if (isAuth) {
|
||||
Util.log('* Routing' + '-> ' + name);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue