theater.route.js 388 Bytes
Newer Older
Kim, Subin's avatar
theater    
Kim, Subin committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
import express from "express";
import theaterCtrl from "../controllers/theater.controller.js";

const router = express.Router();

router
    .route("/")
    .get(theaterCtrl.getAll)
    .put(theaterCtrl.submit)

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

Kim, Subin's avatar
Kim, Subin committed
15
16
17
18
19
router
    .route("/:theaterId")
    .get(theaterCtrl.getOne)
    .delete(theaterCtrl.remove)

Kim, Subin's avatar
theater    
Kim, Subin committed
20
export default router;