Skip to content

Commit

Permalink
fix: 그룹의 메인페이지 API수정
Browse files Browse the repository at this point in the history
  • Loading branch information
SangWoon123 committed May 23, 2024
1 parent 978e883 commit c93bf85
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.RequiredArgsConstructor;
import org.springframework.http.MediaType;
import org.springframework.security.core.annotation.AuthenticationPrincipal;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.multipart.MultipartFile;
Expand All @@ -25,7 +26,6 @@ public class GroupRoomController {

private final GroupRoomService groupRoomService;

//TODO: 그룹 클릭시 보여지는 데이터
@Operation(summary = "메인페이지 API", description = "내 그룹 가져오기")
@GetMapping()
public CommonResponse<List<GroupResponse>> getAllGroupRoomByUser(@AuthenticationPrincipal UserInfo userInfo) {
Expand All @@ -41,7 +41,7 @@ public CommonResponse<?> getUserByGroup(@PathVariable Long groupId) {
}

@Operation(summary = "그룹 생성")
@PostMapping()
@PostMapping(consumes = MediaType.MULTIPART_FORM_DATA_VALUE)
public CommonResponse<GroupResponse> createGroupRoom(@AuthenticationPrincipal UserInfo userInfo,
@RequestPart(value = "request") GroupCreateRequest createGroupRoom,
@RequestPart(value = "thumbnail") MultipartFile thumbnailFile) {
Expand Down

0 comments on commit c93bf85

Please sign in to comment.