Skip to content

Commit 12f83e5

Browse files
committed
Changed single eval from path eval to single eval
1 parent 97f1c21 commit 12f83e5

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/main/java/org/togetherjava/jshellbot/backend/JShellApi.java

+3-4
Original file line numberDiff line numberDiff line change
@@ -32,12 +32,11 @@ public JShellApi(ObjectMapper objectMapper, String baseUrl) {
3232

3333
public JShellResult evalOnce(String code) {
3434
return send(
35-
baseUrl + "eval",
35+
baseUrl + "single-eval",
3636
HttpRequest.newBuilder().POST(BodyPublishers.ofString(code)),
37-
ofJson(JShellResultWithId.class, objectMapper)
37+
ofJson(JShellResult.class, objectMapper)
3838
)
39-
.body()
40-
.result();
39+
.body();
4140
}
4241

4342
public JShellResult evalSession(String code, String sessionId) {

0 commit comments

Comments
 (0)