URL from env
This commit is contained in:
parent
d13b5933d0
commit
b60f0b759a
1 changed files with 1 additions and 1 deletions
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…
Add table
Add a link
Reference in a new issue