Removed some useless thing
This commit is contained in:
parent
2909538c88
commit
9d6ba487f5
1 changed files with 0 additions and 3 deletions
3
app.js
3
app.js
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue