remove unused express stuff

This commit is contained in:
lesion 2018-08-10 00:19:47 +02:00
parent aecc246a26
commit 32a2f2fdb2
No known key found for this signature in database
GPG Key ID: 352918250B012177

5
app.js
View File

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