/*--- title: Hello, AGI group: Basics summary: Send text back to the browser and log to the console. ---*/ /* The smallest WebApp backend script. Whatever the script sends with sendResp() is the body of the HTTP response the front end receives. */ console.log("Running as " + USERNAME + " (" + (userIsAdmin() ? "admin" : "user") + ")"); console.log("Script file: " + __FILE__); var now = new Date(); sendResp("Hello, " + USERNAME + "! The server time is " + now.toISOString());