feature(config) add authCheck

This commit is contained in:
coderaiser 2015-10-02 08:04:17 -04:00
parent 732d4fa658
commit c7a5f943ad
3 changed files with 64 additions and 34 deletions

View file

@ -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