index.js 671 Bytes
Newer Older
Kim, Subin's avatar
Kim, Subin committed
1
import express from "express";
한규민's avatar
한규민 committed
2
import userRouter from './user.route.js'
Jiwon Yoon's avatar
Jiwon Yoon committed
3
import movieRouter from './movie.route.js'
Kim, Subin's avatar
theater    
Kim, Subin committed
4
import theaterRouter from "./theater.route.js";
Kim, Subin's avatar
Kim, Subin committed
5
import cinemaRouter from "./cinema.route.js";
Jiwon Yoon's avatar
Jiwon Yoon committed
6
7
import kakaopayRouter from "./kakaopay.route.js";
import emailRouter from './email.route.js'
8
import reservationRouter from './reservation.route.js'
Kim, Subin's avatar
Kim, Subin committed
9
10

const router = express.Router();
Kim, Subin's avatar
Kim, Subin committed
11

Jiwon Yoon's avatar
Jiwon Yoon committed
12
router.use('/movie', movieRouter)
한규민's avatar
한규민 committed
13
router.use('/auth', userRouter)
Jiwon Yoon's avatar
Jiwon Yoon committed
14
15
router.use('/kakaopay',kakaopayRouter)
router.use('/email',emailRouter)
16
router.use('/info', cinemaRouter)
17
18
router.use('/theater', theaterRouter)
router.use('/reservation', reservationRouter)
Kim, Subin's avatar
Kim, Subin committed
19
20

export default router;