Skip to content
Snippets Groups Projects
Commit b324e84b authored by hsp2m10's avatar hsp2m10
Browse files

Adds backend endpoint api

parent e6fb3354
No related branches found
No related tags found
No related merge requests found
...@@ -21,6 +21,9 @@ app.get('/display', (req, res) => { ...@@ -21,6 +21,9 @@ app.get('/display', (req, res) => {
res.render('display'); res.render('display');
}); });
// URL of the backend API
const BACKEND_ENDPOINT = process.env.BACKEND || 'http://localhost:8181';
//Start the server //Start the server
function startServer() { function startServer() {
const PORT = process.env.PORT || 8080; const PORT = process.env.PORT || 8080;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment