Skip to content

Commit 7696cb9

Browse files
committed
refactor(controller): 기존 PostMapping을 PutMapping으로 변경
- 봉사자 및 센터 기본 정보 업데이트 엔드포인트를 PUT 메서드로 변경 - RESTful API 규칙에 따라 정보 업데이트에 PUT 메서드 활용
1 parent eccd9ed commit 7696cb9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/main/java/com/somemore/user/controller/UserCommandController.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
import lombok.RequiredArgsConstructor;
1111
import lombok.extern.slf4j.Slf4j;
1212
import org.springframework.security.access.annotation.Secured;
13-
import org.springframework.web.bind.annotation.PostMapping;
13+
import org.springframework.web.bind.annotation.PutMapping;
1414
import org.springframework.web.bind.annotation.RequestBody;
1515
import org.springframework.web.bind.annotation.RequestMapping;
1616
import org.springframework.web.bind.annotation.RestController;
@@ -27,7 +27,7 @@ public class UserCommandController {
2727
private final UpdateBasicInfoUseCase updateBasicInfoUseCase;
2828

2929
@Secured("ROLE_VOLUNTEER")
30-
@PostMapping("/basic-info/volunteer")
30+
@PutMapping("/basic-info/volunteer")
3131
@Operation(summary = "봉사자 기본 정보 업데이트", description = "봉사자의 기본 정보를 업데이트합니다.")
3232
public ApiResponse<String> registerBasicInfo(
3333
@UserId UUID userId,
@@ -38,7 +38,7 @@ public ApiResponse<String> registerBasicInfo(
3838
}
3939

4040
@Secured("ROLE_CENTER")
41-
@PostMapping("/basic-info/center")
41+
@PutMapping("/basic-info/center")
4242
@Operation(summary = "센터 기본 정보 업데이트", description = "센터의 기본 정보를 업데이트합니다.")
4343
public ApiResponse<String> registerBasicInfo(
4444
@UserId UUID userId,

0 commit comments

Comments
 (0)