movie.route.js 313 Bytes
Newer Older
Jiwon Yoon's avatar
Jiwon Yoon committed
1
2
3
4
5
6
7
8
9
10
import express from "express";
import movieCtrl from "../controllers/movie.controller.js";

const router = express.Router();

router
    .route("/")
    .post(movieCtrl.comparePopularMovie)
    .get(movieCtrl.comparePopularMovie)

11
12
13
router
    .route("/:movieId")
    .post(movieCtrl.create)
Jiwon Yoon's avatar
Jiwon Yoon committed
14
15

export default router;