{"size": 671, "ext": "js", "max_stars_repo_path": "routes/favourite.route.js", "max_stars_repo_name": "novik8989/mdb-website", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "routes/favourite.route.js", "max_issues_repo_name": "novik8989/mdb-website", "max_issues_repo_issues_event_min_datetime": "2021-05-13T18:21:16.000Z", "max_issues_repo_issues_event_max_datetime": "2021-05-13T18:21:16.000Z", "max_forks_repo_path": "routes/favourite.route.js", "max_forks_repo_name": "novik8989/mdb-website", "max_forks_repo_forks_event_min_datetime": "2021-05-13T17:17:54.000Z", "max_forks_repo_forks_event_max_datetime": "2021-05-13T17:17:54.000Z"}
{"max_stars_count": null, "max_issues_count": 1, "max_forks_count": 1, "avg_line_length": 31.9523809524, "max_line_length": 67, "alphanum_fraction": 0.7928464978}
const express = require("express");
const router = express.Router();

const { isAuth } = require("../middleware/auth");
const {
  favouriteNumberController,
  favouritedController,
  addToFavouriteController,
  removeFromFavouriteController,
  getFavouritedMovieController,
} = require("../controllers/favourite.controller");

// Define Route
router.post("/favouriteNumber", favouriteNumberController);
router.post("/favourited", favouritedController);
router.post("/addToFavourite", addToFavouriteController);
router.post("/removeFromFavourite", removeFromFavouriteController);
router.post("/getFavouritedMovie", getFavouritedMovieController);

module.exports = router;
