This commit is contained in:
MuslemRahimi 2025-04-05 10:37:14 +02:00
parent 947b27895f
commit f402970af0
3 changed files with 1103 additions and 3 deletions

View File

@ -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
>

View 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(),
};
};

File diff suppressed because it is too large Load Diff