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
search-page
Commits
e08aede8
Commit
e08aede8
authored
Jan 29, 2021
by
Kim, Chaerin
Browse files
Merge remote-tracking branch 'origin/lsy' into cherry
parents
491a0815
5e8130f8
Changes
21
Hide whitespace changes
Inline
Side-by-side
server/server.js
View file @
e08aede8
...
@@ -2,6 +2,8 @@ import express from 'express'
...
@@ -2,6 +2,8 @@ import express from 'express'
import
connectDb
from
'
./utils/connectDb.js
'
import
connectDb
from
'
./utils/connectDb.js
'
import
placeRouter
from
'
./routes/place.routes.js
'
import
placeRouter
from
'
./routes/place.routes.js
'
import
reviewRouter
from
'
./routes/review.routes.js
'
import
reviewRouter
from
'
./routes/review.routes.js
'
import
userRouter
from
"
./routes/user.routes.js
"
import
authRouter
from
"
./routes/auth.routes.js
"
connectDb
()
connectDb
()
...
@@ -11,12 +13,9 @@ app.use(express.json())
...
@@ -11,12 +13,9 @@ app.use(express.json())
app
.
use
(
placeRouter
)
app
.
use
(
placeRouter
)
app
.
use
(
reviewRouter
)
app
.
use
(
reviewRouter
)
app
.
use
(
userRouter
)
app
.
get
(
'
/
'
,
(
req
,
res
)
=>
{
app
.
use
(
authRouter
)
console
.
log
(
"
/ req.body
"
,
req
.
body
)
res
.
json
({
message
:
"
http://localhost3001/ 에 연결됨
"
})
})
app
.
listen
(
3001
,
()
=>
{
app
.
listen
(
3001
,
()
=>
{
console
.
log
(
'
Server is l
istening on port 3001
'
)
console
.
log
(
'
L
istening on port 3001
'
)
})
})
\ No newline at end of file
Prev
1
2
Next
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