From aaf3b3248937ffd1677a1eeb6a575c539b6ec84a Mon Sep 17 00:00:00 2001 From: Kai Moritz Date: Sat, 16 Oct 2021 15:25:48 +0200 Subject: [PATCH] users: 1.0.2 - simplified the path (removed /users) --- pom.xml | 2 +- .../java/de/juplo/kafka/wordcount/users/UsersController.java | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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); -- 2.20.1