From: Kai Moritz Date: Sat, 16 Oct 2021 13:25:48 +0000 (+0200) Subject: users: 1.0.2 - simplified the path (removed /users) X-Git-Tag: users-1.0.2 X-Git-Url: http://juplo.de/gitweb/?a=commitdiff_plain;h=aaf3b3248937ffd1677a1eeb6a575c539b6ec84a;p=demos%2Fkafka%2Fwordcount users: 1.0.2 - simplified the path (removed /users) --- diff --git a/pom.xml b/pom.xml index ef0f148..e46706e 100644 --- a/pom.xml +++ b/pom.xml @@ -10,7 +10,7 @@ de.juplo.kafka.wordcount users - 1.0.1 + 1.0.2 Wordcount-Users Users-service of the multi-user wordcount-example diff --git a/src/main/java/de/juplo/kafka/wordcount/users/UsersController.java b/src/main/java/de/juplo/kafka/wordcount/users/UsersController.java index b0ab941..ed35e90 100644 --- a/src/main/java/de/juplo/kafka/wordcount/users/UsersController.java +++ b/src/main/java/de/juplo/kafka/wordcount/users/UsersController.java @@ -38,7 +38,7 @@ public class UsersController } @PostMapping( - path = "/users", + path = "/", consumes = { MimeTypeUtils.TEXT_PLAIN_VALUE, MimeTypeUtils.APPLICATION_JSON_VALUE @@ -83,7 +83,7 @@ public class UsersController return result; } - @GetMapping("/users/{username}") + @GetMapping("/{username}") ResponseEntity queryFor(@PathVariable String username) { Optional redirect = processor.getRedirect(username);