import { ApiClient } from "./api_client"; export default async function loader(path: string, { params }) { const client = new ApiClient(); const response = await client.get(path); return response.data; }