From 94f2f3baf149ba1783ad94d3902fd0a108b39151 Mon Sep 17 00:00:00 2001 From: Kai Moritz Date: Sun, 12 Jul 2020 14:59:42 +0200 Subject: [PATCH] WIP --- src/main/java/de/juplo/boot/data/jdbc/UserController.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/main/java/de/juplo/boot/data/jdbc/UserController.java b/src/main/java/de/juplo/boot/data/jdbc/UserController.java index 513ec5a..cec7b6e 100644 --- a/src/main/java/de/juplo/boot/data/jdbc/UserController.java +++ b/src/main/java/de/juplo/boot/data/jdbc/UserController.java @@ -27,13 +27,12 @@ public class UserController { @PostMapping - public ResponseEntity getVorgang( + public ResponseEntity createUser( ServletUriComponentsBuilder builder, @RequestBody String username) { String sanitizedUsername = UserController.sanitize(username); User user = new User(sanitizedUsername, LocalDateTime.now(), false); repository.save(user); - // TODO: Not-Unique Fehler auslösen UriComponents uri = builder .fromCurrentRequest() -- 2.20.1