import { createApiClient } from '$lib/shared/api.server';
import type { LayoutServerLoad } from './$types';

export const load: LayoutServerLoad = async ({ fetch }) => {
	const api = createApiClient(fetch);
	const result = await api.GET('/api/users');
	return { users: result.data ?? [] };
};
