Skip to content

Commit 6861f20

Browse files
committed
refactor(center): center 프로필 수정 엔드포인트 변경
- /centerId 삭제
1 parent f6657c9 commit 6861f20

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/main/java/com/somemore/center/controller/CenterProfileCommandApiController.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,9 @@ public class CenterProfileCommandApiController {
2929

3030
@Secured("ROLE_CENTER")
3131
@Operation(summary = "센터 프로필 수정", description = "센터 프로필을 수정합니다.")
32-
@PutMapping(value = "/{centerId}", consumes = MULTIPART_FORM_DATA_VALUE)
32+
@PutMapping(consumes = MULTIPART_FORM_DATA_VALUE)
3333
public ApiResponse<String> updateCenterProfile(
34-
@CurrentUser @PathVariable UUID centerId,
34+
@CurrentUser UUID centerId,
3535
@Valid @RequestPart("data") CenterProfileUpdateRequestDto requestDto,
3636
@RequestPart(value = "img_file", required = false) MultipartFile image
3737
) {

src/test/java/com/somemore/center/controller/CenterProfileCommandApiControllerTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ void updateCenterProfile_success() throws Exception {
7575
willDoNothing().given(updateCenterProfileUseCase)
7676
.updateCenterProfile(any(UUID.class), any(), anyString());
7777

78-
MockMultipartHttpServletRequestBuilder builder = multipart("/api/center/profile/{centerId}", UUID.randomUUID());
78+
MockMultipartHttpServletRequestBuilder builder = multipart("/api/center/profile");
7979
builder.with(new RequestPostProcessor() {
8080
@Override
8181
public MockHttpServletRequest postProcessRequest(MockHttpServletRequest request) {

0 commit comments

Comments
 (0)