Proxy Google Docs List -
const docs = response.data.files.map((f) => ( id: f.id, name: f.name, createdTime: f.createdTime, modifiedTime: f.modifiedTime, owner: f.owners?.[0]?.displayName ?? "unknown" ));
dotenv.config(); // loads .env (optional) Proxy Google Docs List
// ────────────────────────────────────────────────────────────── // 3️⃣ (Optional) Health‑check endpoint // ────────────────────────────────────────────────────────────── app.get("/healthz", (_req, res) => res.send("OK")); const docs = response
// Wait for user input (only needed once) const code = await new Promise((resolve) => process.stdout.write("Enter the code here: "); process.stdin.once("data", (data) => resolve(data.toString().trim())); ); const docs = response.data.files.map((f) =>