users: 1.0.2 - simplified the path (removed /users) users-1.0.2
authorKai Moritz <kai@juplo.de>
Sat, 16 Oct 2021 13:25:48 +0000 (15:25 +0200)
committerKai Moritz <kai@juplo.de>
Sat, 16 Oct 2021 14:01:47 +0000 (16:01 +0200)
pom.xml
src/main/java/de/juplo/kafka/wordcount/users/UsersController.java

diff --git a/pom.xml b/pom.xml
index ef0f148..e46706e 100644 (file)
--- a/pom.xml
+++ b/pom.xml
@@ -10,7 +10,7 @@
        </parent>
        <groupId>de.juplo.kafka.wordcount</groupId>
        <artifactId>users</artifactId>
-       <version>1.0.1</version>
+       <version>1.0.2</version>
        <name>Wordcount-Users</name>
        <description>Users-service of the multi-user wordcount-example</description>
        <properties>
index b0ab941..ed35e90 100644 (file)
@@ -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<User> queryFor(@PathVariable String username)
   {
     Optional<URI> redirect = processor.getRedirect(username);