From 3642957f5222b8243c5d3867184eb9d19f7aa6ff Mon Sep 17 00:00:00 2001 From: loks0n <22452787+loks0n@users.noreply.github.com> Date: Mon, 23 Oct 2023 14:48:12 +0100 Subject: [PATCH 1/2] fix: java starter --- java/starter/src/Main.java | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/java/starter/src/Main.java b/java/starter/src/Main.java index e39a23ac..2e473f82 100644 --- a/java/starter/src/Main.java +++ b/java/starter/src/Main.java @@ -3,6 +3,7 @@ import io.openruntimes.java.RuntimeContext; import io.openruntimes.java.RuntimeOutput; import java.util.HashMap; +import java.util.Map; import io.appwrite.Client; public class Main { @@ -14,9 +15,9 @@ public RuntimeOutput main(RuntimeContext context) throws Exception { // // Client client = new Client(); // client - // .setEndpoint("https://cloud.appwrite.io/v1") - // .setProject(System.getenv("APPWRITE_FUNCTION_PROJECT_ID")) - // .setKey(System.getenv("APPWRITE_API_KEY")); + // .setEndpoint("https://cloud.appwrite.io/v1") + // .setProject(System.getenv("APPWRITE_FUNCTION_PROJECT_ID")) + // .setKey(System.getenv("APPWRITE_API_KEY")); // You can log messages to the console context.log("Hello, Logs!"); @@ -36,7 +37,7 @@ public RuntimeOutput main(RuntimeContext context) throws Exception { json.put("learn", "https://appwrite.io/docs"); json.put("connect", "https://appwrite.io/discord"); json.put("getInspired", "https://builtwith.appwrite.io"); - + // `context.getRes().json()` is a handy helper for sending JSON return context.getRes().json(json); } From a607ef8c22839fe4c3faf57b842049aff507df46 Mon Sep 17 00:00:00 2001 From: "Luke B. Silver" <22452787+loks0n@users.noreply.github.com> Date: Wed, 25 Oct 2023 09:03:42 +0100 Subject: [PATCH 2/2] feat: new motto --- java/starter/src/Main.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/java/starter/src/Main.java b/java/starter/src/Main.java index 2e473f82..dba56d45 100644 --- a/java/starter/src/Main.java +++ b/java/starter/src/Main.java @@ -33,7 +33,7 @@ public RuntimeOutput main(RuntimeContext context) throws Exception { } Map json = new HashMap<>(); - json.put("motto", "Build Fast. Scale Big. All in One Place."); + json.put("motto", "Build like a team of hundreds_"); json.put("learn", "https://appwrite.io/docs"); json.put("connect", "https://appwrite.io/discord"); json.put("getInspired", "https://builtwith.appwrite.io"); @@ -41,4 +41,4 @@ public RuntimeOutput main(RuntimeContext context) throws Exception { // `context.getRes().json()` is a handy helper for sending JSON return context.getRes().json(json); } -} \ No newline at end of file +}