Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
students
eue
Commits
737c5bec
Commit
737c5bec
authored
May 04, 2021
by
KangMin An
Browse files
Update : body-parser -> express internal parser.
parent
cb80d7c3
Changes
1
Hide whitespace changes
Inline
Side-by-side
server/src/app.js
View file @
737c5bec
import
bodyParser
from
"
body-parser
"
;
import
cookieParser
from
"
cookie-parser
"
;
import
cookieParser
from
"
cookie-parser
"
;
import
express
from
"
express
"
;
import
express
from
"
express
"
;
import
morgan
from
"
morgan
"
;
import
morgan
from
"
morgan
"
;
...
@@ -19,8 +18,8 @@ app.set("views", path.join(__dirname, "views"));
...
@@ -19,8 +18,8 @@ app.set("views", path.join(__dirname, "views"));
app
.
use
(
helmet
());
app
.
use
(
helmet
());
app
.
use
(
cookieParser
());
app
.
use
(
cookieParser
());
app
.
use
(
bodyParser
.
json
());
app
.
use
(
express
.
json
());
app
.
use
(
bodyParser
.
urlencoded
({
extended
:
true
}));
app
.
use
(
express
.
urlencoded
({
extended
:
true
}));
app
.
use
(
morgan
(
"
dev
"
));
app
.
use
(
morgan
(
"
dev
"
));
// local middleware 사용
// local middleware 사용
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment