URL from env
This commit is contained in:
parent
d13b5933d0
commit
b60f0b759a
2
api.js
2
api.js
|
@ -2,7 +2,7 @@ const got = require('got');
|
||||||
const { getEnvVar } = require('./env.js');
|
const { getEnvVar } = require('./env.js');
|
||||||
|
|
||||||
const fetchEvents = () =>
|
const fetchEvents = () =>
|
||||||
got('http://localhost:8384/rest/events', {
|
got(getEnvVar('ST_URL','http://localhost:8384/rest/events'), {
|
||||||
headers: {
|
headers: {
|
||||||
'X-API-Key': getEnvVar('API_KEY','invalid')
|
'X-API-Key': getEnvVar('API_KEY','invalid')
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in a new issue