Skip to content

Commit 854366b

Browse files
committed
Update example to use latest API.
Signed-off-by: Santiago Pericas-Geertsen <[email protected]>
1 parent c7f10da commit 854366b

File tree

1 file changed

+2
-2
lines changed
  • examples/webserver/jsonrpc/src/main/java/io/helidon/examples/webserver/jsonrpc

1 file changed

+2
-2
lines changed

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)