From ca978c6535e797f71b013419aa6a980f6d591241 Mon Sep 17 00:00:00 2001 From: jgorrell-source Date: Mon, 22 Dec 2025 10:48:42 -0500 Subject: [PATCH] Create scoreboard --- scoreboard | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 scoreboard diff --git a/scoreboard b/scoreboard new file mode 100644 index 0000000000..a58d3bd918 --- /dev/null +++ b/scoreboard @@ -0,0 +1,22 @@ +export default async function handler(req, res) { + try { + // Replace with your actual Web App URL + const GOOGLE_APP_URL = + "https://script.google.com/macros/s/AKfycbyw7749VbLR4kTp5uLkZpFacd1sBibUXXO8Nl9YHBerbTMUG_3_WaiGQpL27lwfw2F0rQ/exec"; + + const response = await fetch(GOOGLE_APP_URL, { + method: "POST", + headers: { "Content-Type": "application/json" }, + body: JSON.stringify(req.body), + }); + + const data = await response.text(); + // Forward Google’s JSON straight back + res + .status(response.status) + .setHeader("Content-Type", "application/json") + .send(data); + } catch (err) { + res.status(500).json({ ok: false, error: String(err) }); + } +}