mirror of
https://github.com/abhigyanpatwari/GitNexus.git
synced 2026-09-10 22:43:40 +00:00
9 lines
305 B
TypeScript
9 lines
305 B
TypeScript
export async function useMulti() {
|
|
const [grantsRes, secureRes] = await Promise.all([
|
|
fetch('/api/grants'),
|
|
fetch('/api/secure'),
|
|
]);
|
|
const grants = await grantsRes.json();
|
|
const secure = await secureRes.json();
|
|
return { grants: grants.data, secure: secure.items, meta: grants.meta };
|
|
}
|