|
|
|
@ -65,6 +65,7 @@ var express = require('express'),
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
// Middlewares
|
|
|
|
|
app.use(express.compress());
|
|
|
|
|
app.use(express.favicon(path.join(__dirname, '../', 'public', 'favicon.ico')));
|
|
|
|
|
app.use(require('less-middleware')({
|
|
|
|
|
src: path.join(__dirname, '../', 'public'),
|
|
|
|
@ -74,7 +75,6 @@ var express = require('express'),
|
|
|
|
|
app.use(express.bodyParser()); // Puts POST vars in request.body
|
|
|
|
|
|
|
|
|
|
app.use(express.cookieParser()); // If you want to parse cookies (res.cookies)
|
|
|
|
|
app.use(express.compress());
|
|
|
|
|
app.use(express.session({
|
|
|
|
|
store: new RedisStore({
|
|
|
|
|
client: RDB,
|
|
|
|
@ -514,7 +514,6 @@ var express = require('express'),
|
|
|
|
|
});
|
|
|
|
|
});
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
}(WebServer));
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|