WIP
authorKai Moritz <kai@juplo.de>
Sun, 12 Jul 2020 12:59:42 +0000 (14:59 +0200)
committerKai Moritz <kai@juplo.de>
Sun, 12 Jul 2020 12:59:42 +0000 (14:59 +0200)
src/main/java/de/juplo/boot/data/jdbc/UserController.java

index 513ec5a..cec7b6e 100644 (file)
@@ -27,13 +27,12 @@ public class UserController {
 
 
     @PostMapping
-    public ResponseEntity<Void> getVorgang(
+    public ResponseEntity<Void> 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()