aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdrián Oliva <adrian.oliva@cimat.mx>2023-05-29 12:44:55 -0600
committerAdrián Oliva <adrian.oliva@cimat.mx>2023-05-29 12:44:55 -0600
commit1f192c7ad1a7c3854efa5595321783e5b1a3fe81 (patch)
treef95ec4a9aac7caa3136c370429e89412681d6bc3
parent23c9a70a472d5dcc9e0810d9a1b645ecd24554ff (diff)
downloadToDo-App-BE-1f192c7ad1a7c3854efa5595321783e5b1a3fe81.tar.gz
ToDo-App-BE-1f192c7ad1a7c3854efa5595321783e5b1a3fe81.zip
Typo.
Forgot to remove RequestBody from GetMapping.
Diffstat (limited to '')
-rw-r--r--src/main/java/com/encora/Main.java2
1 files changed, 1 insertions, 1 deletions
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);