From 32a2f2fdb228c9b0a140003c4855fc0e460b4e1c Mon Sep 17 00:00:00 2001 From: lesion Date: Fri, 10 Aug 2018 00:19:47 +0200 Subject: [PATCH] remove unused express stuff --- app.js | 5 ----- 1 file changed, 5 deletions(-) diff --git a/app.js b/app.js index c7a42c8..f5d4392 100644 --- a/app.js +++ b/app.js @@ -1,8 +1,6 @@ var createError = require('http-errors'); var express = require('express'); var path = require('path'); -var cookieParser = require('cookie-parser'); -var logger = require('morgan'); var indexRouter = require('./routes/index'); @@ -12,10 +10,7 @@ var app = express(); app.set('views', path.join(__dirname, 'views')); app.set('view engine', 'pug'); -app.use(logger('dev')); -app.use(express.json()); app.use(express.urlencoded({ extended: false })); -app.use(cookieParser()); app.use(express.static(path.join(__dirname, 'public'))); app.use('/', indexRouter);