Skip to content

Commit

Permalink
update filter comment
Browse files Browse the repository at this point in the history
  • Loading branch information
odezig authored and odezig committed Mar 2, 2024
1 parent c18fddd commit bce05b7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/routes/commentRoutes.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
const express = require('express');
const router = express.Router();
const asyncHandler = require('express-async-handler');
const commentController = require('../controllers/commentController');

router.post('/', asyncHandler(commentController.createComment));
router.get('/', asyncHandler(commentController.getComments));
router.patch('/:id/like', asyncHandler(commentController.toggleLike));
router.post('/', commentController.createComment);
router.get('/', commentController.getComments);
router.patch('/:id/like', commentController.toggleLike);
router.get('/filter', commentController.filterComments);

module.exports = router;

0 comments on commit bce05b7

Please sign in to comment.