Skip to content

Commit

Permalink
refactor: #15 미사용 API 주석
Browse files Browse the repository at this point in the history
  • Loading branch information
ehs208 committed Nov 4, 2024
1 parent 089de84 commit cfb7555
Showing 1 changed file with 7 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.leets.xcellentbe.domain.post.dto.ArticleWithMediaResponseDto;
import com.leets.xcellentbe.domain.post.dto.ArticlesResponseDto;
import com.leets.xcellentbe.domain.post.service.PostService;
import com.leets.xcellentbe.global.response.GlobalResponseDto;
Expand All @@ -31,11 +30,11 @@ public ResponseEntity<GlobalResponseDto<List<ArticlesResponseDto>>> getArticles(
.body(GlobalResponseDto.success(postService.getArticles(customId)));
}

@GetMapping("/{customId}/list/media")
@Operation(summary = "특정 사용자의 미디어 게시글 조회", description = "특정 사용자의 미디어 게시글을 조회합니다.")
public ResponseEntity<GlobalResponseDto<List<ArticleWithMediaResponseDto>>> getMediaArticles(
@PathVariable String customId) {
return ResponseEntity.status(HttpStatus.OK)
.body(GlobalResponseDto.success(postService.getMediaArticles(customId)));
}
// @GetMapping("/{customId}/list/media")
// @Operation(summary = "특정 사용자의 미디어 게시글 조회", description = "특정 사용자의 미디어 게시글을 조회합니다.")
// public ResponseEntity<GlobalResponseDto<List<ArticleWithMediaResponseDto>>> getMediaArticles(
// @PathVariable String customId) {
// return ResponseEntity.status(HttpStatus.OK)
// .body(GlobalResponseDto.success(postService.getMediaArticles(customId)));
// }
}

0 comments on commit cfb7555

Please sign in to comment.