Update app/tools/odds.ts
Browse files- app/tools/odds.ts +0 -1
app/tools/odds.ts
CHANGED
|
@@ -33,7 +33,6 @@ function createOddsApi({ apiKey }: { apiKey: string }) {
|
|
| 33 |
markets = 'spreads';
|
| 34 |
}
|
| 35 |
const oddsUrl = `https://api.the-odds-api.com/v4/sports/${sportKey}/odds?apiKey=${apiKey}&oddsFormat=${oddsFormat}&dateFormat=${dateFormat}&markets=${markets}®ions=${regions}`;
|
| 36 |
-
console.log(oddsUrl);
|
| 37 |
const activeSports = await fetch(oddsUrl);
|
| 38 |
const oddsResponse = await activeSports.json();
|
| 39 |
console.log(oddsResponse);
|
|
|
|
| 33 |
markets = 'spreads';
|
| 34 |
}
|
| 35 |
const oddsUrl = `https://api.the-odds-api.com/v4/sports/${sportKey}/odds?apiKey=${apiKey}&oddsFormat=${oddsFormat}&dateFormat=${dateFormat}&markets=${markets}®ions=${regions}`;
|
|
|
|
| 36 |
const activeSports = await fetch(oddsUrl);
|
| 37 |
const oddsResponse = await activeSports.json();
|
| 38 |
console.log(oddsResponse);
|