projects
/
demos
/
kafka
/
outbox
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c6d9fc0
)
WIP
author
Kai Moritz
<kai@juplo.de>
Sun, 12 Jul 2020 12:59:42 +0000
(14:59 +0200)
committer
Kai 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
patch
|
blob
|
history
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
(file)
--- 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<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()