mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-07-28 18:23:35 +00:00
feature(config) add authCheck
This commit is contained in:
parent
732d4fa658
commit
c7a5f943ad
3 changed files with 64 additions and 34 deletions
|
|
@ -110,6 +110,8 @@
|
|||
var size = cloudfunc.MAX_SIZE,
|
||||
pref = getPrefix(prefix);
|
||||
|
||||
config.listen(socket, authCheck);
|
||||
|
||||
webconsole({
|
||||
socket: socket,
|
||||
prefix: pref + '/console',
|
||||
|
|
@ -163,9 +165,7 @@
|
|||
logout,
|
||||
setUrl(prefix),
|
||||
auth(),
|
||||
config.middle({
|
||||
socket: socket,
|
||||
}),
|
||||
config.middle,
|
||||
restafary({
|
||||
prefix : cloudfunc.apiURL + '/fs',
|
||||
root : root
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue