theater.route.js 453 Bytes
Newer Older
Kim, Subin's avatar
theater    
Kim, Subin committed
1
2
3
4
5
import express from "express";
import theaterCtrl from "../controllers/theater.controller.js";

const router = express.Router();

Kim, Subin's avatar
Kim, Subin committed
6
7
8
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)

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