From 42aa571ae58bd63ff309699a2d020123a783f605 Mon Sep 17 00:00:00 2001 From: Starbeamrainbowlabs Date: Fri, 25 Feb 2022 03:23:21 +0000 Subject: [PATCH] client route main: test new client table fetching method --- src/static/js/routes/route_main.mjs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/static/js/routes/route_main.mjs b/src/static/js/routes/route_main.mjs index f6537dd..ae1180c 100644 --- a/src/static/js/routes/route_main.mjs +++ b/src/static/js/routes/route_main.mjs @@ -1,5 +1,7 @@ "use strict"; -export default function route_main() { - console.log(`The main route`); +export default async function route_main() { + for await (let item of globalThis.sysquery.table("cpu")) { + console.log(`[TABLE] item`, item); + } }