ui fix
This commit is contained in:
parent
cfb7d11f69
commit
a0d369e3a7
@ -1,4 +1,4 @@
|
|||||||
export const load = async ({ locals, setHeaders }) => {
|
export const load = async ({ locals }) => {
|
||||||
const getEconomicCalendar = async () => {
|
const getEconomicCalendar = async () => {
|
||||||
const { apiURL, apiKey } = locals;
|
const { apiURL, apiKey } = locals;
|
||||||
// make the POST request to the endpoint
|
// make the POST request to the endpoint
|
||||||
@ -11,7 +11,6 @@ export const load = async ({ locals, setHeaders }) => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
const output = await response.json();
|
const output = await response.json();
|
||||||
setHeaders({ "cache-control": "public, max-age=60*15" });
|
|
||||||
|
|
||||||
return output;
|
return output;
|
||||||
};
|
};
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
export const load = async ({ locals }) => {
|
export const load = async ({ locals }) => {
|
||||||
const { apiKey, apiURL, user } = locals;
|
const { apiKey, apiURL } = locals;
|
||||||
|
|
||||||
const getData = async () => {
|
const getData = async () => {
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user