From a035b94e7b5dc9a57dbff90bbd028c28304ab080 Mon Sep 17 00:00:00 2001 From: joseph le Date: Mon, 2 Oct 2023 16:29:04 +0700 Subject: [PATCH] update test webhook --- server/index.js | 1 + website/src/App.js | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/server/index.js b/server/index.js index f0abc2c..bc686d4 100644 --- a/server/index.js +++ b/server/index.js @@ -32,6 +32,7 @@ app.get("/api/products", (req, res) => { ]; res.status(200).send(data); }); + const PORT = 8000; app.listen(PORT, () => { diff --git a/website/src/App.js b/website/src/App.js index 236ef3f..96c5b9a 100644 --- a/website/src/App.js +++ b/website/src/App.js @@ -17,12 +17,13 @@ const App = () => { useEffect(() => { getProducts(); }, []); + return (

Demo Git Webhook

{allProducts.map((pro) => (
-

+

SN: {pro.SN}

PID: {pro.PID}