Skip to content

Commit

Permalink
✨ [feat] 태그로 내가 작성한 게시글 조회(미리보기) Controller 코드 작성
Browse files Browse the repository at this point in the history
  • Loading branch information
y2hscmtk committed Aug 4, 2024
1 parent a91bb35 commit d19448f
Show file tree
Hide file tree
Showing 9 changed files with 10 additions and 0 deletions.
Binary file modified .gradle/8.8/executionHistory/executionHistory.bin
Binary file not shown.
Binary file modified .gradle/8.8/executionHistory/executionHistory.lock
Binary file not shown.
Binary file modified .gradle/8.8/fileHashes/fileHashes.bin
Binary file not shown.
Binary file modified .gradle/8.8/fileHashes/fileHashes.lock
Binary file not shown.
Binary file modified .gradle/8.8/fileHashes/resourceHashesCache.bin
Binary file not shown.
Binary file modified .gradle/buildOutputCleanup/buildOutputCleanup.lock
Binary file not shown.
Binary file modified .gradle/file-system.probe
Binary file not shown.
Binary file modified build/tmp/compileJava/previous-compilation-data.bin
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,16 @@ public ResponseEntity<ApiResponse<?>> getMyArticles(
return result;
}

// 태그로 내가 작성한 게시글 조회 (미리보기)
@GetMapping("/mine/tag")
public ResponseEntity<?> getMyArticlesByTag(
@AuthenticationPrincipal CustomUserDetails customUserDetails,
@RequestParam String tagName,
Pageable pageable) {
String email = customUserDetails.getEmail();
return articleService.getMyArticleByTag(email, tagName, pageable);
}

// 전체 게시글 조회 - 미리보기
@GetMapping("/all")
public ResponseEntity<?> getAllArticle(Pageable pageable) {
Expand Down

0 comments on commit d19448f

Please sign in to comment.