typo
This commit is contained in:
parent
947b27895f
commit
f402970af0
@ -889,9 +889,7 @@
|
||||
</td>
|
||||
<td
|
||||
class="whitespace-nowrap px-0.5 py-[1px] text-left text-sm font-semibold xs:px-1 sm:text-right"
|
||||
>{stockDeck?.holdingsCount !== null
|
||||
? abbreviateNumber(stockDeck?.holdingsCount)
|
||||
: "n/a"}</td
|
||||
>n/a</td
|
||||
></tr
|
||||
>
|
||||
|
||||
|
||||
25
src/routes/options-calculator/+page.server.ts
Normal file
25
src/routes/options-calculator/+page.server.ts
Normal file
@ -0,0 +1,25 @@
|
||||
export const load = async ({ locals }) => {
|
||||
const { apiKey, apiURL } = locals;
|
||||
|
||||
const getData = async () => {
|
||||
|
||||
// make the POST request to the endpoint
|
||||
const response = await fetch(apiURL + "/potus-tracker", {
|
||||
method: "GET",
|
||||
headers: {
|
||||
"Content-Type": "application/json",
|
||||
"X-API-KEY": apiKey,
|
||||
},
|
||||
});
|
||||
|
||||
const output = await response.json();
|
||||
|
||||
return output;
|
||||
};
|
||||
|
||||
|
||||
// Make sure to return a promise
|
||||
return {
|
||||
getData: await getData(),
|
||||
};
|
||||
};
|
||||
1077
src/routes/options-calculator/+page.svelte
Normal file
1077
src/routes/options-calculator/+page.svelte
Normal file
File diff suppressed because it is too large
Load Diff
Loading…
x
Reference in New Issue
Block a user