Skip to content

Commit

Permalink
Merge pull request #303 from GSM-MSG/302-not-used-profile-upload-api-…
Browse files Browse the repository at this point in the history
…delete

🔀 :: 쓰이지 않는 프로필 업로드 api 삭제
  • Loading branch information
Umjiseung authored Mar 23, 2024
2 parents fcc1cca + f70e53c commit 3884b78
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 46 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

This file was deleted.

0 comments on commit 3884b78

Please sign in to comment.