Skip to content

Commit 6575bb6

Browse files
committed
refactor: 리디렉션 제거
1 parent 7ad8387 commit 6575bb6

File tree

1 file changed

+1
-11
lines changed

1 file changed

+1
-11
lines changed

src/main/java/com/example/log4u/domain/user/controller/UserController.java

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
package com.example.log4u.domain.user.controller;
22

3-
import java.net.URI;
4-
5-
import org.springframework.http.HttpHeaders;
63
import org.springframework.http.HttpStatus;
74
import org.springframework.http.ResponseEntity;
85
import org.springframework.security.authentication.UsernamePasswordAuthenticationToken;
@@ -18,7 +15,6 @@
1815
import org.springframework.web.bind.annotation.RequestParam;
1916
import org.springframework.web.bind.annotation.RestController;
2017

21-
import com.example.log4u.common.constants.UrlConstants;
2218
import com.example.log4u.common.dto.PageResponse;
2319
import com.example.log4u.common.oauth2.dto.CustomOAuth2User;
2420
import com.example.log4u.domain.user.dto.NicknameValidationResponseDto;
@@ -110,13 +106,7 @@ public ResponseEntity<Void> createMyProfile(
110106
@RequestBody UserProfileMakeRequestDto userProfileMakeRequestDto
111107
) {
112108
userService.createMyProfile(customOAuth2User.getUserId(), userProfileMakeRequestDto);
113-
114-
// 생성 후 리디렉션 URI 설정
115-
HttpHeaders headers = new HttpHeaders();
116-
117-
// 위치: 메인페이지(내 프로필)
118-
headers.setLocation(URI.create(UrlConstants.MAIN_URL));
119-
return new ResponseEntity<>(headers, HttpStatus.FOUND);
109+
return ResponseEntity.ok().build();
120110
}
121111

122112
@PutMapping("/me")

0 commit comments

Comments
 (0)