Skip to content

Commit 99a86eb

Browse files
committed
chore: 스웨거 url cors 추가
1 parent ad29390 commit 99a86eb

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

src/main/java/com/example/ForDay/domain/auth/dto/response/OnboardingDataDto.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,16 +9,16 @@
99
@AllArgsConstructor
1010
public class OnboardingDataDto {
1111
private Long id;
12-
private Long hobbyCardId;
12+
private Long hobbyInfoId;
1313
private String hobbyName;
1414
private String hobbyPurpose;
1515
private Integer hobbyTimeMinutes;
1616
private Integer executionCount;
1717
private boolean isDurationSet;
1818

19-
public OnboardingDataDto(Long id, Long hobbyCardId, String hobbyName, String hobbyPurpose, Integer hobbyTimeMinutes, Integer executionCount, Integer goalDays) {
19+
public OnboardingDataDto(Long id, Long hobbyInfoId, String hobbyName, String hobbyPurpose, Integer hobbyTimeMinutes, Integer executionCount, Integer goalDays) {
2020
this.id = id;
21-
this.hobbyCardId = hobbyCardId;
21+
this.hobbyInfoId = hobbyInfoId;
2222
this.hobbyName = hobbyName;
2323
this.hobbyPurpose = hobbyPurpose;
2424
this.hobbyTimeMinutes = hobbyTimeMinutes;

src/main/java/com/example/ForDay/global/config/RestTemplateConfig.java renamed to src/main/java/com/example/ForDay/global/config/ai/RestTemplateConfig.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package com.example.ForDay.global.config;
1+
package com.example.ForDay.global.config.ai;
22

33
import org.springframework.boot.web.client.RestTemplateBuilder;
44
import org.springframework.context.annotation.Bean;

src/main/java/com/example/ForDay/global/config/security/SecurityConfig.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,8 @@ public CorsConfigurationSource configurationSource() {
6565
CorsConfiguration configuration = new CorsConfiguration();
6666
configuration.setAllowedOriginPatterns(List.of(
6767
"http://localhost:5173",
68-
"http://localhost:5173/"
68+
"http://localhost:5173/",
69+
"https://forday.kr"
6970
));
7071
configuration.setAllowedMethods(List.of(
7172
"GET","POST","PUT","PATCH","DELETE","OPTIONS"

0 commit comments

Comments
 (0)