language-learning-app/frontend/src/routes/app/adventures/getAdventures.remote.ts
wilson a8cd8d8060
Some checks are pending
/ test (push) Waiting to run
feat: [frontend] First implementation of the "Create new adventure"
form.
2026-05-03 22:39:03 +01:00

12 lines
363 B
TypeScript

import { getRequestEvent, query } from '$app/server';
import { listAdventuresApiAdventuresGet } from '@client';
export const getAdventures = query('unchecked', async () => {
const request = getRequestEvent();
const { data } = await listAdventuresApiAdventuresGet({
headers: {
Authorization: `Bearer ${request.locals.authToken}`
}
});
return data;
});