File tree Expand file tree Collapse file tree 1 file changed +1
-11
lines changed
src/main/java/com/example/log4u/domain/user/controller Expand file tree Collapse file tree 1 file changed +1
-11
lines changed Original file line number Diff line number Diff line change 11package com .example .log4u .domain .user .controller ;
22
3- import java .net .URI ;
4-
5- import org .springframework .http .HttpHeaders ;
63import org .springframework .http .HttpStatus ;
74import org .springframework .http .ResponseEntity ;
85import org .springframework .security .authentication .UsernamePasswordAuthenticationToken ;
1815import org .springframework .web .bind .annotation .RequestParam ;
1916import org .springframework .web .bind .annotation .RestController ;
2017
21- import com .example .log4u .common .constants .UrlConstants ;
2218import com .example .log4u .common .dto .PageResponse ;
2319import com .example .log4u .common .oauth2 .dto .CustomOAuth2User ;
2420import 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" )
You can’t perform that action at this time.
0 commit comments