Skip to content

Commit

Permalink
Refactor: delete verb from endpoint (#22)
Browse files Browse the repository at this point in the history
  • Loading branch information
pingowl authored May 27, 2024
1 parent a5a9d50 commit f381e7e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/com/drugbox/controller/DrugboxController.java
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public class DrugboxController {
private final DrugboxService drugboxService;

// 구급상자 추가하기 (생성)
@PostMapping("/add")
@PostMapping("")
public ResponseEntity<IdResponse> addDrugbox(@Valid DrugboxSaveRequest request) throws IOException {
Long drugboxId = drugboxService.addDrugbox(request, SecurityUtil.getCurrentUserId());
IdResponse response = IdResponse.builder()
Expand All @@ -39,7 +39,7 @@ public ResponseEntity<IdResponse> addDrugbox(@Valid DrugboxSaveRequest request)


// 구급상자 추가하기 (초대)
@PostMapping("/add/invite-code")
@PostMapping("/invite-code")
public ResponseEntity<IdResponse> addDrugboxByInviteCode(@RequestParam(value="inviteCode") String inviteCode) throws IOException {
Long drugboxId = drugboxService.addDrugboxByInviteCode(inviteCode, SecurityUtil.getCurrentUserId());
IdResponse response = IdResponse.builder()
Expand Down

0 comments on commit f381e7e

Please sign in to comment.