cinema.route.js 508 Bytes
Newer Older
Kim, Subin's avatar
Kim, Subin committed
1
2
import express from "express";
import cinemaCtrl from "../controllers/cinema.controller.js";
3
import ticketfeeCtrl from "../controllers/ticketfee.controller.js";
Kim, Subin's avatar
Kim, Subin committed
4
5
6
7

const router = express.Router();

router
8
    .route("/cinema")
Kim, Subin's avatar
Kim, Subin committed
9
10
11
    .get(cinemaCtrl.getAll)
    .put(cinemaCtrl.edit)

12
router
13
    .route("/ticketfee/:theaterTypeId")
14
15
16
17
18
19
20
21
    .get(ticketfeeCtrl.getOne)

router
    .route("/ticketfee")
    .get(ticketfeeCtrl.getAll)
    .put(ticketfeeCtrl.edit)
    .delete(ticketfeeCtrl.remove)

Kim, Subin's avatar
Kim, Subin committed
22
export default router;