Compare commits
1 Commits
f89b1721f9
...
master
Author | SHA1 | Date | |
---|---|---|---|
9d0a0a9cab |
@ -27,7 +27,7 @@ let shuttingDown = false;
|
|||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
app.get('/', errorHandler(async (req, res) => {
|
app.get('*', errorHandler(async (req, res) => {
|
||||||
const results = await Promise.all(environment.tickers.map(ticker =>
|
const results = await Promise.all(environment.tickers.map(ticker =>
|
||||||
fetch(`https://finnhub.io/api/v1/quote?symbol=${ticker}&token=${environment.token}`)
|
fetch(`https://finnhub.io/api/v1/quote?symbol=${ticker}&token=${environment.token}`)
|
||||||
.then(resp => resp.json())));
|
.then(resp => resp.json())));
|
||||||
|
Reference in New Issue
Block a user