We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents c803acf + 1067566 commit fff1391Copy full SHA for fff1391
http/apiTest.http
@@ -3,7 +3,7 @@
3
4
@base_url = http://localhost:3000
5
@productId = 011ce5d0-501b-4bad-a739-04f2f2210346
6
-@articleId = 9818f5d2-58f7-4e5a-b3d4-5d1956537fa3
+@articleId = e2205ec3-b7b8-442b-a2e0-ad1f2edf088f
7
@commentId = 011ce5d0-501b-4bad-a739-04f2f2210346
8
9
### ===========================================
src/routes/commentRoutes.js
@@ -12,7 +12,7 @@ const router = Router();
12
router.get('/', getComment);
13
router.get('/article/:id', getCommentByArticle);
14
router.post('/', createComment);
15
-router.put('/:id', updateComment);
+router.patch('/:id', updateComment);
16
router.delete('/:id', deleteComment);
17
18
export default router;
0 commit comments