theater.route.js 453 Bytes
Newer Older
1
2
3
4
5
6
7
8
import express from "express";
import theaterCtrl from "../controllers/theater.controller.js";

const router = express.Router();

router.route("/getInfo")
    .post(theaterCtrl.getTheaterInfo)

Kim, Subin's avatar
theater    
Kim, Subin committed
9
10
11
12
13
14
15
16
17
router
    .route("/")
    .get(theaterCtrl.getAll)
    .put(theaterCtrl.submit)

router
    .route("/type")
    .get(theaterCtrl.getTypes)

Kim, Subin's avatar
Kim, Subin committed
18
19
20
21
22
router
    .route("/:theaterId")
    .get(theaterCtrl.getOne)
    .delete(theaterCtrl.remove)

23
export default router;