Skip to content

Commit

Permalink
fix : 비자 정보 가져오기 pathVariable추가
Browse files Browse the repository at this point in the history
  • Loading branch information
test1 committed Nov 13, 2024
1 parent 142e4f7 commit 72c2294
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
import org.springframework.http.MediaType;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestBody;
Expand Down Expand Up @@ -87,8 +88,8 @@ public ResponseEntity<Void> fillInVisa(@RequestBody VisaRequest visaRequest,
}

@Operation(summary = "비자 정보 가져오기")
@GetMapping("/visa")
public ResponseEntity<VisaResponse> findVisa(@RequestParam("userId") Long userId) {
@GetMapping("/visa/{userId}")
public ResponseEntity<VisaResponse> findVisa(@PathVariable("userId") Long userId) {
VisaResponse visaResponse = userInformationService.findVisa(userId);
return ResponseEntity.ok(visaResponse);
}
Expand Down

0 comments on commit 72c2294

Please sign in to comment.