From b60f0b759a58af065e9521fc014d33d969965e49 Mon Sep 17 00:00:00 2001 From: bus Date: Sun, 18 Apr 2021 01:42:48 +0200 Subject: [PATCH] URL from env --- api.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api.js b/api.js index 17df1ac..5219d25 100644 --- a/api.js +++ b/api.js @@ -2,7 +2,7 @@ const got = require('got'); const { getEnvVar } = require('./env.js'); const fetchEvents = () => - got('http://localhost:8384/rest/events', { + got(getEnvVar('ST_URL','http://localhost:8384/rest/events'), { headers: { 'X-API-Key': getEnvVar('API_KEY','invalid') },