owltide/composables/accounts.ts

10 lines
219 B
TypeScript
Raw Normal View History

export const useAccounts = () => useFetch(
"/api/accounts",
{
transform: (input) => input === undefined ? false as any as null: input,
getCachedData(key, nuxtApp) {
return nuxtApp.payload.data[key];
},
}
);