index.js 765 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";
5
import timetableRouter from "./timetable.route.js";
Kim, Subin's avatar
Kim, Subin committed
6
import cinemaRouter from "./cinema.route.js";
Jiwon Yoon's avatar
Jiwon Yoon committed
7
8
import kakaopayRouter from "./kakaopay.route.js";
import emailRouter from './email.route.js'
Kim, Subin's avatar
Kim, Subin committed
9
import reservationRouter from './reservation.route.js'
Kim, Subin's avatar
Kim, Subin committed
10
11

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

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

export default router;