URL from env

This commit is contained in:
bus 2021-04-18 01:42:48 +02:00
parent d13b5933d0
commit b60f0b759a
1 changed files with 1 additions and 1 deletions

2
api.js
View File

@ -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')
},