@@ -590,10 +590,10 @@ RouterFunction<ServerResponse> route = route()
590590 .path("/person", builder -> builder // <1>
591591 .GET("/{id}", accept(APPLICATION_JSON), handler::getPerson)
592592 .GET(accept(APPLICATION_JSON), handler::listPeople)
593- .POST("/person", handler::createPerson))
593+ .POST(handler::createPerson))
594594 .build();
595595----
596- <1> Note that second parameter of `path` is a consumer that takes the a router builder.
596+ <1> Note that second parameter of `path` is a consumer that takes the router builder.
597597
598598[source,kotlin,indent=0,subs="verbatim,quotes",role="secondary"]
599599.Kotlin
@@ -602,7 +602,7 @@ RouterFunction<ServerResponse> route = route()
602602 "/person".nest {
603603 GET("/{id}", accept(APPLICATION_JSON), handler::getPerson)
604604 GET(accept(APPLICATION_JSON), handler::listPeople)
605- POST("/person", handler::createPerson)
605+ POST(handler::createPerson)
606606 }
607607 }
608608----
@@ -620,7 +620,7 @@ We can further improve by using the `nest` method together with `accept`:
620620 .nest(accept(APPLICATION_JSON), b2 -> b2
621621 .GET("/{id}", handler::getPerson)
622622 .GET(handler::listPeople))
623- .POST("/person", handler::createPerson))
623+ .POST(handler::createPerson))
624624 .build();
625625----
626626[source,kotlin,indent=0,subs="verbatim,quotes",role="secondary"]
@@ -631,7 +631,7 @@ We can further improve by using the `nest` method together with `accept`:
631631 accept(APPLICATION_JSON).nest {
632632 GET("/{id}", handler::getPerson)
633633 GET(handler::listPeople)
634- POST("/person", handler::createPerson)
634+ POST(handler::createPerson)
635635 }
636636 }
637637 }
@@ -766,7 +766,7 @@ For instance, consider the following example:
766766 .before(request -> ServerRequest.from(request) // <1>
767767 .header("X-RequestHeader", "Value")
768768 .build()))
769- .POST("/person", handler::createPerson))
769+ .POST(handler::createPerson))
770770 .after((request, response) -> logResponse(response)) // <2>
771771 .build();
772772----
@@ -784,7 +784,7 @@ For instance, consider the following example:
784784 ServerRequest.from(it)
785785 .header("X-RequestHeader", "Value").build()
786786 }
787- POST("/person", handler::createPerson)
787+ POST(handler::createPerson)
788788 after { _, response -> // <2>
789789 logResponse(response)
790790 }
@@ -815,7 +815,7 @@ The following example shows how to do so:
815815 .nest(accept(APPLICATION_JSON), b2 -> b2
816816 .GET("/{id}", handler::getPerson)
817817 .GET(handler::listPeople))
818- .POST("/person", handler::createPerson))
818+ .POST(handler::createPerson))
819819 .filter((request, next) -> {
820820 if (securityManager.allowAccessTo(request.path())) {
821821 return next.handle(request);
@@ -835,7 +835,7 @@ The following example shows how to do so:
835835 ("/person" and accept(APPLICATION_JSON)).nest {
836836 GET("/{id}", handler::getPerson)
837837 GET("", handler::listPeople)
838- POST("/person", handler::createPerson)
838+ POST(handler::createPerson)
839839 filter { request, next ->
840840 if (securityManager.allowAccessTo(request.path())) {
841841 next(request)
0 commit comments