reservation.route.js 431 Bytes
Newer Older
Kim, Subin's avatar
Kim, Subin committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
import express from "express";
import ReservationCtrl from "../controllers/reservation.controller.js";

const router = express.Router();


router.route('/findreservation')
    .post(ReservationCtrl.findReservedSeats)
    .get(ReservationCtrl.findReservation)

router.route('/findonereservation')
    .post(ReservationCtrl.findOneReservation)

router.route('/save')
    .post(ReservationCtrl.saveReservation)

export default router;