From be5eb96884df8449ac4a324a3f3f5fb853aa548a Mon Sep 17 00:00:00 2001 From: Hoan Nguyen Date: Tue, 25 Jun 2024 09:11:55 +0700 Subject: [PATCH] add param name --- .../java/com/axonivy/market/controller/ProductController.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/axonivy/market/controller/ProductController.java b/src/main/java/com/axonivy/market/controller/ProductController.java index 434beb202..5f60c55b7 100644 --- a/src/main/java/com/axonivy/market/controller/ProductController.java +++ b/src/main/java/com/axonivy/market/controller/ProductController.java @@ -45,7 +45,8 @@ public ProductController(ProductService service, ProductModelAssembler assembler @GetMapping() public ResponseEntity> findProducts( @RequestParam(required = true, name = "type") String type, - @RequestParam(required = false, name = "keyword") String keyword, Pageable pageable) { + @RequestParam(required = false, name = "keyword") String keyword, + @RequestParam(required = false, name = "pageable") Pageable pageable) { Page results = service.findProducts(type, keyword, pageable); if (results.isEmpty()) { return generateEmptyPagedModel();