theater.route.js 390 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
18
router
    .route("/")
    .get(theaterCtrl.getAll)
    .put(theaterCtrl.submit)
    .delete(theaterCtrl.remove)

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

19
export default router;