mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 18:55:26 +00:00
feature(server) add controller.midle to express app
This commit is contained in:
parent
bba629d19e
commit
08ce5dde50
1 changed files with 4 additions and 0 deletions
|
|
@ -120,6 +120,9 @@
|
|||
function createServer(port, ip, protocol, ssl, callback) {
|
||||
var server, app, respondApp,
|
||||
config = main.config,
|
||||
|
||||
middle = controller.middle(DIR),
|
||||
|
||||
isMinify = function() {
|
||||
var isMinify = main.config.minify;
|
||||
|
||||
|
|
@ -147,6 +150,7 @@
|
|||
|
||||
if (expressApp) {
|
||||
app = expressApp;
|
||||
app.use(middle);
|
||||
} else {
|
||||
funcs.push(controller.middle(DIR));
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue