diff --git a/src/main/java/com/readyvery/readyverydemo/src/order/OrderController.java b/src/main/java/com/readyvery/readyverydemo/src/order/OrderController.java index 042b84f..9fbfb23 100644 --- a/src/main/java/com/readyvery/readyverydemo/src/order/OrderController.java +++ b/src/main/java/com/readyvery/readyverydemo/src/order/OrderController.java @@ -48,7 +48,7 @@ public ResponseEntity getFoody( @GetMapping("/cart") public ResponseEntity getCart(@AuthenticationPrincipal CustomUserDetails userDetails, - @RequestParam("cartId") Long cartId) { + @RequestParam(value = "cartId", required = false) Long cartId) { CartGetRes cartGetRes = orderService.getCart(userDetails, cartId); return new ResponseEntity<>(cartGetRes, HttpStatus.OK); }