reservation.route.js 644 Bytes
Newer Older
1
import express from "express";
한규민's avatar
한규민 committed
2
3
import movieCtrl from "../controllers/movie.controller.js";
import reservationCtrl from "../controllers/reservation.controller.js";
4
5
6
7
8

const router = express.Router();


router.route('/findreservation')
한규민's avatar
한규민 committed
9
10
    .post(reservationCtrl.findReservedSeats)
    .get(reservationCtrl.findReservation)
11
12

router.route('/findonereservation')
한규민's avatar
한규민 committed
13
    .get(reservationCtrl.findOneReservation, movieCtrl.getMovieById)
14

Jiwon Yoon's avatar
Jiwon Yoon committed
15
router.route('/save')
한규민's avatar
한규민 committed
16
    .post(reservationCtrl.saveReservation)
17

18
19
20
21
22
23
router.route('/savetid')
    .post(reservationCtrl.saveTid)

router.route('/delete')
    .get(reservationCtrl.deleteReservation)

24
export default router;