From 1f192c7ad1a7c3854efa5595321783e5b1a3fe81 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adri=C3=A1n=20Oliva?= Date: Mon, 29 May 2023 12:44:55 -0600 Subject: Typo. Forgot to remove RequestBody from GetMapping. --- src/main/java/com/encora/Main.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/main') diff --git a/src/main/java/com/encora/Main.java b/src/main/java/com/encora/Main.java index 5aaede6..7793be9 100644 --- a/src/main/java/com/encora/Main.java +++ b/src/main/java/com/encora/Main.java @@ -231,7 +231,7 @@ public class Main { @CrossOrigin(origins=allowed_origin) @GetMapping("/todos/filtSort/pages") @ResponseStatus(value=HttpStatus.OK) - public Integer getNumberOfPages(@RequestBody filtersAndSorters filAndSor) { + public Integer getNumberOfPages() { // Number of items divided by page size. final int pageSize = 10; return (int) Math.ceil((double) toDosRepository.filteredToDos.size() / pageSize); -- cgit v1.2.3