Skip to content

Commit

Permalink
Feat: 홈화면 하단 기록가 추천 API 설계 변경 (#159)
Browse files Browse the repository at this point in the history
* #158 - refactor: API 설계를 /recommend/new 에서 /recommend 로 수정

* #158 - refactor: cors 허용 주소에 포트 번호 3000 추가
  • Loading branch information
morenow98 authored Feb 19, 2024
1 parent 674e479 commit a6734e7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/main/java/cotato/bookitlist/config/WebConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ public class WebConfig implements WebMvcConfigurer {
@Override
public void addCorsMappings(CorsRegistry registry) {
registry.addMapping("/**")
.allowedOrigins("http://localhost:3000", "https://bookitlist.store")
.allowedOrigins("http://localhost:3000", "http://bookitlist.store:3000")
.allowedHeaders("*")
.allowedMethods("*")
;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ public ResponseEntity<Void> changeName(
return ResponseEntity.ok().build();
}

@GetMapping("/recommend/new")
@GetMapping("/recommend")
public ResponseEntity<MemberRecommendListResponse> getNewMembers() {
return ResponseEntity.ok(memberService.getNewMembers());
}
Expand Down

0 comments on commit a6734e7

Please sign in to comment.