import { fetchWithAuth } from "./client";

export const citationsApi = {
  list: (token: string, params?: string) =>
    fetchWithAuth(
      `/api/v1/citations/${params ? `?${params}` : ""}`,
      {},
      token
    ),
  getStats: (token: string) =>
    fetchWithAuth("/api/v1/citations/stats/", {}, token),
};
