Skip to content

Commit 2c5938b

Browse files
authored
Merge pull request #211 from JA-yeong-eop-JA-moeu-JA/fix/#210-team
🐛 fix: createTeam 메서드가 PathVariable 사용하도록 수정
2 parents ea53a1e + 80b7dd3 commit 2c5938b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/java/com/jajaja/domain/team/controller/TeamController.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ public class TeamController {
2525
summary = "팀 생성 API | by 지지/이지희",
2626
description = "‘팀 생성하기 버튼’을 통해 해당 상품의 팀을 생성합니다. 해당 유저는 만들어진 팀의 리더가 됩니다."
2727
)
28-
@PostMapping
29-
public ApiResponse<TeamCreateResponseDto> createTeam(@Auth Long memberId, @RequestParam Long productId) {
28+
@PostMapping("/{productId}")
29+
public ApiResponse<TeamCreateResponseDto> createTeam(@Auth Long memberId, @PathVariable Long productId) {
3030
TeamCreateResponseDto responseDto = teamCommandService.createTeam(memberId, productId);
3131
return ApiResponse.onSuccess(responseDto);
3232
}

0 commit comments

Comments
 (0)