aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAdrián Oliva <adrian.oliva@cimat.mx>2023-05-25 19:25:41 -0600
committerAdrián Oliva <adrian.oliva@cimat.mx>2023-05-25 19:25:41 -0600
commit4366c7f97f5f8faa4d7498ec051cbd1ebf1c951e (patch)
tree3e538614bc13d56e7750f949958ef951de3c0f42 /src
parent071caea09665a3cb9f6027253b1628f1f7743722 (diff)
downloadToDo-App-BE-4366c7f97f5f8faa4d7498ec051cbd1ebf1c951e.tar.gz
ToDo-App-BE-4366c7f97f5f8faa4d7498ec051cbd1ebf1c951e.zip
Little typo on POST.
Now it uses the page /todos.
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 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) {