Dropped bodyParser since express has it built in

pull/15/head
Facinorous-420 3 years ago
parent 8d19e78678
commit a39d6891e2

@ -20,7 +20,6 @@
"@callmekory/logger": "^1.1.1", "@callmekory/logger": "^1.1.1",
"async": "^3.2.3", "async": "^3.2.3",
"bcrypt": "^5.0.1", "bcrypt": "^5.0.1",
"body-parser": "^1.19.2",
"compression": "^1.7.4", "compression": "^1.7.4",
"connect-flash": "^0.1.1", "connect-flash": "^0.1.1",
"cookie-parser": "^1.4.6", "cookie-parser": "^1.4.6",

@ -3,7 +3,6 @@ import compression from "compression" // compresses requests
import path from "path" import path from "path"
import passport from "passport" import passport from "passport"
import cookieSession from "cookie-session" import cookieSession from "cookie-session"
import bodyParser from 'body-parser'
import flash from 'connect-flash' import flash from 'connect-flash'
import errorHandler from "errorhandler" import errorHandler from "errorhandler"
@ -23,7 +22,6 @@ app.set("port", process.env.PORT || 3000)
app.set("trust proxy", true) app.set("trust proxy", true)
app.set("views", path.join(__dirname, "../views")) app.set("views", path.join(__dirname, "../views"))
app.set("view engine", "ejs") app.set("view engine", "ejs")
app.use(bodyParser.urlencoded({ extended: false }))
app.use(compression()) app.use(compression())
app.use(express.json()) app.use(express.json())
app.use(express.urlencoded({ extended: true })) app.use(express.urlencoded({ extended: true }))

Loading…
Cancel
Save