Skip to content

Commit fff1391

Browse files
authored
Merge pull request #11 from MinJun916/express-신민준
fix: change commentRoutes PUT to PATCH
2 parents c803acf + 1067566 commit fff1391

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

http/apiTest.http

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
@base_url = http://localhost:3000
55
@productId = 011ce5d0-501b-4bad-a739-04f2f2210346
6-
@articleId = 9818f5d2-58f7-4e5a-b3d4-5d1956537fa3
6+
@articleId = e2205ec3-b7b8-442b-a2e0-ad1f2edf088f
77
@commentId = 011ce5d0-501b-4bad-a739-04f2f2210346
88

99
### ===========================================

src/routes/commentRoutes.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ const router = Router();
1212
router.get('/', getComment);
1313
router.get('/article/:id', getCommentByArticle);
1414
router.post('/', createComment);
15-
router.put('/:id', updateComment);
15+
router.patch('/:id', updateComment);
1616
router.delete('/:id', deleteComment);
1717

1818
export default router;

0 commit comments

Comments
 (0)