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
Today KU
Commits
1365a485
Commit
1365a485
authored
Oct 28, 2021
by
Kim, Subin
Browse files
server-router 설정
parent
c83ea733
Changes
2
Hide whitespace changes
Inline
Side-by-side
server/app.js
View file @
1365a485
import
express
from
'
express
'
import
cookieParser
from
'
cookie-parser
'
import
mainRouter
from
'
./routes/index.js
'
const
app
=
express
()
app
.
use
(
express
.
json
())
app
.
use
(
express
.
urlencoded
({
extended
:
true
}))
app
.
use
(
cookieParser
())
app
.
use
(
'
/api
'
,
mainRouter
)
export
default
app
\ No newline at end of file
server/routes/index.js
0 → 100644
View file @
1365a485
import
express
from
"
express
"
;
const
router
=
express
.
Router
();
export
default
router
;
\ No newline at end of file
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