Fixed path issues
This commit is contained in:
parent
f89b1721f9
commit
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())));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user