mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-07-19 09:24:51 +00:00
feature(auth) add ability to enable/disable without restart
This commit is contained in:
parent
8df7a8a019
commit
b9a0e4e409
2 changed files with 27 additions and 32 deletions
|
|
@ -96,8 +96,6 @@
|
|||
isDiff = isOption.bind(null, 'diff'),
|
||||
isZip = isOption.bind(null, 'zip'),
|
||||
|
||||
authFunc = config('auth') ? auth() : emptyFunc,
|
||||
|
||||
ponseStatic = ponse.static(DIR_ROOT, {
|
||||
cache: isCache
|
||||
}),
|
||||
|
|
@ -105,7 +103,7 @@
|
|||
funcs = [
|
||||
logout,
|
||||
setUrl(prefix),
|
||||
authFunc,
|
||||
auth(),
|
||||
config(),
|
||||
restafary({
|
||||
prefix : cloudfunc.apiURL + '/fs',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue