native_convex_CRM/app/api/leadsApi.ts
2026-07-16 18:26:01 +05:30

11 lines
271 B
TypeScript

import { LeadItem } from '@interfaces';
import { api } from '@utils';
export const getLeadsApi = async (
leadId: string | null,
staffId: string,
): Promise<LeadItem[]> => {
const url = `/api/leads/${leadId}/${staffId}`;
return await api.get<LeadItem[]>(url);
};