Skip to content

Commit 16093e5

Browse files
authored
Update example to use latest API. (#191)
Signed-off-by: Santiago Pericas-Geertsen <[email protected]>
1 parent 8580417 commit 16093e5

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,3 +67,4 @@ Released under [Apache License 2.0](./LICENSE.txt).
6767
## Third Party Attributions
6868

6969
Developers choosing to distribute a binary implementation of this project are responsible for obtaining and providing all required licenses and copyright notices for the third-party code used in order to ensure compliance with their respective open source licenses.
70+

examples/webserver/jsonrpc/src/main/java/io/helidon/examples/webserver/jsonrpc/JsonRpcMain.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,8 @@ static class MachineService implements JsonRpcService {
6363
public void routing(JsonRpcRules rules) {
6464
rules.register("/machine",
6565
JsonRpcHandlers.builder()
66-
.putMethod("start", this::start)
67-
.putMethod("stop", this::stop)
66+
.method("start", this::start)
67+
.method("stop", this::stop)
6868
.build());
6969
}
7070

0 commit comments

Comments
 (0)