Skip to content

Commit 942863e

Browse files
committed
fix: roomId 경로변수
1 parent bfca4a9 commit 942863e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/main/java/com/oronaminc/join/question/api/QuestionController.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
import org.springframework.http.HttpStatus;
1111
import org.springframework.http.ResponseEntity;
1212
import org.springframework.web.bind.annotation.GetMapping;
13+
import org.springframework.web.bind.annotation.PathVariable;
1314
import org.springframework.web.bind.annotation.RequestMapping;
1415
import org.springframework.web.bind.annotation.RequestParam;
1516
import org.springframework.web.bind.annotation.ResponseStatus;
@@ -30,7 +31,7 @@ public ResponseEntity<QuestionListResponse> getQuestions(
3031
@RequestParam(required = false) Long lastEmojiCount,
3132
@RequestParam(defaultValue = "10") int size,
3233
@RequestParam Long memberId,
33-
@RequestParam Long roomId
34+
@PathVariable Long roomId
3435
) {
3536
Slice<QuestionAssembleResponse> result = questionService.getQuestions(
3637
sort, lastId, lastEmojiCount, size, memberId, roomId

0 commit comments

Comments
 (0)