diff options
author | Adrián Oliva <adrian.oliva@cimat.mx> | 2023-05-25 19:25:41 -0600 |
---|---|---|
committer | Adrián Oliva <adrian.oliva@cimat.mx> | 2023-05-25 19:25:41 -0600 |
commit | 4366c7f97f5f8faa4d7498ec051cbd1ebf1c951e (patch) | |
tree | 3e538614bc13d56e7750f949958ef951de3c0f42 /src | |
parent | 071caea09665a3cb9f6027253b1628f1f7743722 (diff) | |
download | ToDo-App-BE-4366c7f97f5f8faa4d7498ec051cbd1ebf1c951e.tar.gz ToDo-App-BE-4366c7f97f5f8faa4d7498ec051cbd1ebf1c951e.zip |
Little typo on POST.
Now it uses the page /todos.
Diffstat (limited to 'src')
-rw-r--r-- | src/main/java/com/encora/Main.java | 2 |
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) { |