We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents ea53a1e + 80b7dd3 commit 2c5938bCopy full SHA for 2c5938b
src/main/java/com/jajaja/domain/team/controller/TeamController.java
@@ -25,8 +25,8 @@ public class TeamController {
25
summary = "팀 생성 API | by 지지/이지희",
26
description = "‘팀 생성하기 버튼’을 통해 해당 상품의 팀을 생성합니다. 해당 유저는 만들어진 팀의 리더가 됩니다."
27
)
28
- @PostMapping
29
- public ApiResponse<TeamCreateResponseDto> createTeam(@Auth Long memberId, @RequestParam Long productId) {
+ @PostMapping("/{productId}")
+ public ApiResponse<TeamCreateResponseDto> createTeam(@Auth Long memberId, @PathVariable Long productId) {
30
TeamCreateResponseDto responseDto = teamCommandService.createTeam(memberId, productId);
31
return ApiResponse.onSuccess(responseDto);
32
}
0 commit comments