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
butter-studio
Commits
b3d6dfc5
Commit
b3d6dfc5
authored
Jul 23, 2021
by
Kim, Subin
Browse files
cinema router
parent
a276f40f
Changes
2
Show whitespace changes
Inline
Side-by-side
server/routes/cinema.route.js
0 → 100644
View file @
b3d6dfc5
import
express
from
"
express
"
;
import
cinemaCtrl
from
"
../controllers/cinema.controller.js
"
;
const
router
=
express
.
Router
();
router
.
route
(
"
/
"
)
.
get
(
cinemaCtrl
.
getAll
)
.
put
(
cinemaCtrl
.
edit
)
export
default
router
;
\ No newline at end of file
server/routes/index.js
View file @
b3d6dfc5
import
express
from
"
express
"
;
import
express
from
"
express
"
;
import
movieRouter
from
'
./movie.route.js
'
import
movieRouter
from
"
./movie.route.js
"
;
import
cinemaRouter
from
"
./cinema.route.js
"
;
const
router
=
express
.
Router
();
const
router
=
express
.
Router
();
router
.
use
(
'
/movie
'
,
movieRouter
)
router
.
use
(
'
/movie
'
,
movieRouter
)
router
.
use
(
'
/cinema
'
,
cinemaRouter
)
export
default
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