sclass WorkerChat { O html(S uri, SS params) { S uri2 = appendSlash(uri); if (startsWith(uri2, "/workers-admin/")) { if (!requestAuthed) ret serveAuthForm(params.get('uri)); ret serveWorkersAdmin(uri, params); } if (startsWith(uri2, "/worker/")) { if (!requestAuthed) ret serveAuthForm(params.get('uri)); if (eq(uri2, "/worker/botOnOff/")) { cset(conv, botOn := eq("true", params.get("on"))); ret "OK"; } ret serveWorkerPage(auth, conv, uri, params); } } }