Skip to content

Commit

Permalink
[#42] 전체 밈 조회 구현
Browse files Browse the repository at this point in the history
  • Loading branch information
JunRain2 committed Mar 21, 2024
1 parent 15806c6 commit 12aef4b
Showing 1 changed file with 13 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@
import org.springframework.web.reactive.function.BodyInserters;
import org.springframework.web.reactive.function.client.WebClient;

import com.example.memetory.domain.member.service.MemberService;
import com.example.memetory.domain.meme.dto.GenerateMemeListRequest;
import com.example.memetory.domain.meme.dto.MemeListResponse;
import com.example.memetory.domain.meme.dto.MemeResponse;
import com.example.memetory.domain.meme.dto.MemeServiceDto;
import com.example.memetory.domain.meme.dto.ShotStackCallBackRequest;
Expand Down Expand Up @@ -73,4 +75,15 @@ public ResponseEntity<MemeResponse> findMeme(@LoginMemberEmail String email, @Pa
.status(HttpStatus.OK)
.body(memeService.getMeme(memeServiceDto));
}

@GetMapping
public ResponseEntity<MemeListResponse> findMemeList(@LoginMemberEmail String email) {
MemeServiceDto memeServiceDto = MemeServiceDto.create(email);

MemeListResponse memeListResponse = memeService.getAllMeme(memeServiceDto);

return ResponseEntity
.status(HttpStatus.OK)
.body(memeListResponse);
}
}

0 comments on commit 12aef4b

Please sign in to comment.