From 2b84618d1e8ed8bfe0bef958cdebd3f489c6cac3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lucas=20Ple=C3=9F?= Date: Sun, 4 Sep 2022 13:53:52 +0200 Subject: [PATCH] removed cookies and bodyparser (the were used by forms) --- statusbot.js | 7 ------- 1 file changed, 7 deletions(-) diff --git a/statusbot.js b/statusbot.js index 28bfc90..4539745 100644 --- a/statusbot.js +++ b/statusbot.js @@ -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');