From b324e84bb0e373abc1b7c776e88761f39305e842 Mon Sep 17 00:00:00 2001 From: Heather Packer <hp3@ecs.soton.ac.uk> Date: Tue, 7 Nov 2023 23:38:58 +0000 Subject: [PATCH] Adds backend endpoint api --- app.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app.js b/app.js index dd7278e..7d284a8 100644 --- a/app.js +++ b/app.js @@ -21,6 +21,9 @@ app.get('/display', (req, res) => { res.render('display'); }); +// URL of the backend API +const BACKEND_ENDPOINT = process.env.BACKEND || 'http://localhost:8181'; + //Start the server function startServer() { const PORT = process.env.PORT || 8080; -- GitLab