diff --git a/java/starter/src/Main.java b/java/starter/src/Main.java index e39a23ac..dba56d45 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!"); @@ -32,12 +33,12 @@ 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"); - + // `context.getRes().json()` is a handy helper for sending JSON return context.getRes().json(json); } -} \ No newline at end of file +}