Skip to content

Commit

Permalink
fix : pathVariable
Browse files Browse the repository at this point in the history
  • Loading branch information
xonmin committed Aug 14, 2024
1 parent 8d0a352 commit a0d3f19
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions api/src/main/kotlin/com/mashup/dojo/MemberController.kt
Original file line number Diff line number Diff line change
Expand Up @@ -154,10 +154,8 @@ class MemberController(
}

// todo : temp api for insert relationship data
@PostMapping("/public/member/relation")
fun createRelationShip(
@RequestBody id: MemberId,
): DojoApiResponse<List<MemberRelationId>> {
@PostMapping("/public/member/relation/{id}")
fun createRelationShip(@PathVariable id: MemberId): DojoApiResponse<List<MemberRelationId>> {
return DojoApiResponse.success(memberUseCase.createDefaultMemberRelation(id))
}

Expand Down

0 comments on commit a0d3f19

Please sign in to comment.