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 dddec12 + 9bfabe2 commit 8d10a4fCopy full SHA for 8d10a4f
src/controllers/reviewController.ts
@@ -58,14 +58,15 @@ router.get(
58
59
// 리뷰 생성하기
60
router.post(
61
- "/",
+ "/:id",
62
passport.authenticate("jwt", { session: false }),
63
upload.array("imageUrl", 3), // 수정: images -> imageUrl로 변경 (DB 필드명과 일치)
64
uploadOptionalFiles, // 미들웨어 추가
65
asyncHandle(async (req, res) => {
66
const user = req.user as User;
67
const customerId = user.customerId;
68
- const { confirmedQuoteId, rating, content } = req.body;
+ const confirmedQuoteId = parseInt(req.params.id);
69
+ const { rating, content } = req.body;
70
71
if (!customerId) {
72
throwHttpError(400, "고객 ID가 필요합니다.");
0 commit comments