From 4366c7f97f5f8faa4d7498ec051cbd1ebf1c951e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adri=C3=A1n=20Oliva?= Date: Thu, 25 May 2023 19:25:41 -0600 Subject: Little typo on POST. Now it uses the page /todos. --- src/main/java/com/encora/Main.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/encora/Main.java b/src/main/java/com/encora/Main.java index 6aa5281..ec23015 100644 --- a/src/main/java/com/encora/Main.java +++ b/src/main/java/com/encora/Main.java @@ -42,7 +42,7 @@ public class Main { ) { } - @PostMapping + @PostMapping("/todos") @ResponseStatus(value=HttpStatus.OK) public void addToDo(@RequestBody NewToDo toDo) { if (toDo.text().length() > 120) { -- cgit v1.2.3