Commit 737c5bec authored by KangMin An's avatar KangMin An
Browse files

Update : body-parser -> express internal parser.

parent cb80d7c3
import bodyParser from "body-parser";
import cookieParser from "cookie-parser";
import express from "express";
import morgan from "morgan";
......@@ -19,8 +18,8 @@ app.set("views", path.join(__dirname, "views"));
app.use(helmet());
app.use(cookieParser());
app.use(bodyParser.json());
app.use(bodyParser.urlencoded({ extended: true }));
app.use(express.json());
app.use(express.urlencoded({ extended: true }));
app.use(morgan("dev"));
// local middleware 사용
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment