Browse Source

Add "missing" callout for parity

pull/29610/head
Sam Brannen 2 years ago
parent
commit
6af94dffe5
  1. 3
      framework-docs/src/docs/asciidoc/web/webmvc-functional.adoc

3
framework-docs/src/docs/asciidoc/web/webmvc-functional.adoc

@ -40,7 +40,7 @@ as the following example shows: @@ -40,7 +40,7 @@ as the following example shows:
PersonRepository repository = ...
PersonHandler handler = new PersonHandler(repository);
RouterFunction<ServerResponse> route = route()
RouterFunction<ServerResponse> route = route() // <1>
.GET("/person/{id}", accept(APPLICATION_JSON), handler::getPerson)
.GET("/person", accept(APPLICATION_JSON), handler::listPeople)
.POST("/person", handler::createPerson)
@ -64,6 +64,7 @@ as the following example shows: @@ -64,6 +64,7 @@ as the following example shows:
}
}
----
<1> Create router using `route()`.
[source,kotlin,indent=0,subs="verbatim,quotes",role="secondary"]
.Kotlin

Loading…
Cancel
Save