/**
 * Comment Routes
 */

const express = require("express");
const router = express.Router();
const { authenticate } = require("../middleware/authMiddleware");
const commentController = require("../controllers/commentController");

// Apply authentication
router.use(authenticate);

// Routes
router.put("/:id", commentController.updateComment);
router.delete("/:id", commentController.deleteComment);

module.exports = router;
