Skip to content

Commit

Permalink
fix: 컨텐츠 전체 조회 API 버전 변경 (#285)
Browse files Browse the repository at this point in the history
* feat: 컨텐츠 전체 조회 API 헤더에 중국어, 일본어 추가

* fix: 컨텐츠 전체 조회 API 버전 변경
  • Loading branch information
leeeeeyeon authored Nov 20, 2023
1 parent 1d890b0 commit cd16d54
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 35 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public class ContentController {
@Operation(summary = "컨텐츠 전체 조회 API")
@GetMapping("")
public DataResponseDto<Map<String, List<ContentsResponseDto>>> getContents(
@Pattern(regexp = "^(ko|en)$", message = "언어는 ko 또는 en 중 하나여야 합니다.")
@Pattern(regexp = "^(ko|en|cn|jp)$", message = "한국어, 영어, 중국어, 일본어를 지원하고 있습니다.")
@RequestHeader(name="Content-Language") String language) {
return DataResponseDto.of(contentService.getContents(language));
}
Expand Down
34 changes: 0 additions & 34 deletions src/main/java/com/gsm/blabla/content/api/ContentControllerV2.java

This file was deleted.

0 comments on commit cd16d54

Please sign in to comment.