mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-07-20 18:18:56 +00:00
feature(package) express v4.0.0
This commit is contained in:
parent
5daffcd1f2
commit
e4c2e5132b
2 changed files with 5 additions and 2 deletions
|
|
@ -12,6 +12,7 @@
|
|||
var main = global.cloudcmd.main,
|
||||
express = main.require('express'),
|
||||
httpAuth = main.require('http-auth'),
|
||||
logger = main.require('morgan'),
|
||||
crypto = main.crypto,
|
||||
basic,
|
||||
oldPass,
|
||||
|
|
@ -24,7 +25,8 @@
|
|||
auth = config.auth;
|
||||
|
||||
if (app) {
|
||||
app.use(express.logger('dev'));
|
||||
if (logger)
|
||||
app.use(logger('dev'));
|
||||
|
||||
if (auth && httpAuth) {
|
||||
initAuth();
|
||||
|
|
|
|||
|
|
@ -20,7 +20,8 @@
|
|||
"dropbox": "0.10.2",
|
||||
"minify": "0.2.6",
|
||||
"socket.io": "0.9.16",
|
||||
"express": "3.5.x",
|
||||
"express": "~4.0.0",
|
||||
"morgan": "~1.0.0",
|
||||
"http-auth": "2.1.x",
|
||||
"rimraf": "~2.2.6",
|
||||
"mkdirp": "~0.3.5",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue