removed cookies and bodyparser (the were used by forms)
This commit is contained in:
parent
4010afb866
commit
2b84618d1e
|
@ -2,9 +2,6 @@ var express = require('express'),
|
|||
app = express(),
|
||||
server = require('http').createServer(app),
|
||||
io = require('socket.io').listen(server);
|
||||
var cookieParser = require('cookie-parser');
|
||||
var bodyParser = require('body-parser');
|
||||
var cookieSession = require('cookie-session');
|
||||
var flash = require('connect-flash');
|
||||
var Flukso = require("./flukso");
|
||||
var IpPoll = require("./ip-poll");
|
||||
|
@ -121,10 +118,6 @@ setInterval(flukso.pollPower, 5000);
|
|||
flukso.pollPower();
|
||||
|
||||
app.use(express.static('public'));
|
||||
app.use(cookieParser());
|
||||
app.use(bodyParser.urlencoded({extended: true}));
|
||||
app.use(bodyParser.json({extended: true}));
|
||||
app.use(cookieSession({secret: 'ctdo', cookie: {maxAge: 60000}}));
|
||||
app.use(flash());
|
||||
|
||||
app.set('/views');
|
||||
|
|
Loading…
Reference in New Issue