removed cookies and bodyparser (the were used by forms)

This commit is contained in:
Lucas Pleß 2022-09-04 13:53:52 +02:00
parent 4010afb866
commit 2b84618d1e
1 changed files with 0 additions and 7 deletions

View File

@ -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');