Skip to content

Commit

Permalink
delete :: uploadProfile 삭제
Browse files Browse the repository at this point in the history
  • Loading branch information
Umjiseung committed Mar 23, 2024
1 parent db0974b commit f70e53c
Showing 1 changed file with 0 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ import javax.validation.Valid
@RequestMapping("/user")
class UserController(
private val changePasswordService: ChangePasswordService,
private val uploadProfileService: UploadProfileService,
private val getMyProfileService: GetMyProfileService,
private val getAcceptedUsersService: GetAcceptedUsersService,
private val acceptTeacherSignUpService: AcceptTeacherSignUpService,
Expand Down Expand Up @@ -44,13 +43,6 @@ class UserController(
return ResponseEntity.noContent().build()
}

@Deprecated("This api is deprecated use uploadProfileURL instead")
@PatchMapping("/image")
fun uploadProfile(@RequestPart("image") image: MultipartFile): ResponseEntity<Void> {
uploadProfileService.execute(image)
return ResponseEntity.noContent().build()
}

@PatchMapping("/profile")
fun uploadProfileURL(@RequestParam("image_url") imageURL: String): ResponseEntity<Void> {
uploadProfileURLService.execute(imageURL)
Expand Down

0 comments on commit f70e53c

Please sign in to comment.