Skip to content

Commit

Permalink
MARA 53 : PR 템플릿 업데이트 및 친구관계 Controller 리팩토링 (#15)
Browse files Browse the repository at this point in the history
* PR 템플릿 이슈번호 링크 추가

* deleteFriendship PutMapping -> PostMapping 변경
  • Loading branch information
jhkang1517 authored Jan 31, 2024
1 parent 5af6cd7 commit ddf85df
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/pull_request_template.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
- ...

## 관련 이슈
이 PR과 관련된 이슈: #123 (이슈 번호를 링크해주세요)
이 PR과 관련된 이슈: [MARA-번호](https://alsehf0316.atlassian.net/browse/이슈-번호)

## 특이 사항/주의 사항
- (만약에 특이한 동작이나 주의해야 할 점이 있다면 여기에 적어주세요)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import mara.server.common.success
import mara.server.domain.user.UserNameResponse
import org.springframework.web.bind.annotation.GetMapping
import org.springframework.web.bind.annotation.PostMapping
import org.springframework.web.bind.annotation.PutMapping
import org.springframework.web.bind.annotation.RequestBody
import org.springframework.web.bind.annotation.RequestMapping
import org.springframework.web.bind.annotation.RestController
Expand All @@ -26,7 +25,7 @@ class FriendshipController(
return success(friendshipService.getFriendshipList())
}

@PutMapping
@PostMapping
fun deleteFriendship(@RequestBody friendshipDeleteRequest: FriendshipDeleteRequest): CommonResponse<String> {
return success(friendshipService.deleteFriendship(friendshipDeleteRequest))
}
Expand Down

0 comments on commit ddf85df

Please sign in to comment.