Removed some useless thing

This commit is contained in:
supositware 2021-05-18 19:51:14 +02:00
parent 2909538c88
commit 9d6ba487f5

3
app.js
View file

@ -3,8 +3,6 @@ var express = require('express');
var path = require('path');
var cookieParser = require('cookie-parser');
var logger = require('morgan');
const bodyParser = require('body-parser');
var indexRouter = require('./routes/index');
var usersRouter = require('./routes/users');
@ -19,7 +17,6 @@ app.use(logger('dev'));
app.use(express.json());
app.use(express.urlencoded({ extended: false }));
app.use(cookieParser());
app.use(bodyParser.urlencoded({ extended: true }));
app.use(express.static(path.join(__dirname, 'public')));
app.use('/', indexRouter);