This commit is contained in:
MuslemRahimi 2025-01-29 19:09:13 +01:00
parent cfb7d11f69
commit a0d369e3a7
2 changed files with 2 additions and 3 deletions

View File

@ -1,4 +1,4 @@
export const load = async ({ locals, setHeaders }) => {
export const load = async ({ locals }) => {
const getEconomicCalendar = async () => {
const { apiURL, apiKey } = locals;
// make the POST request to the endpoint
@ -11,7 +11,6 @@ export const load = async ({ locals, setHeaders }) => {
});
const output = await response.json();
setHeaders({ "cache-control": "public, max-age=60*15" });
return output;
};

View File

@ -1,5 +1,5 @@
export const load = async ({ locals }) => {
const { apiKey, apiURL, user } = locals;
const { apiKey, apiURL } = locals;
const getData = async () => {