const { data, pending, error } = await useFetch(`/api/${props.apiEndpoint}`, {
method: 'POST',
body,
key: hash(`${props.apiEndpoint}-${props.apiKey}-${today}`),
default () {
return {
budget: 0,
actual: 0,
difference: 0,
}
},
})
const { data, pending, error } = await useFetch(`/api/${props.apiEndpoint}`, {
method: 'POST',
body,
key: hash(`${props.apiEndpoint}-${props.apiKey}-${today}`),
default () {
return {
budget: 0,
actual: 0,
difference: 0,
}
},
})