Files
edr-platform/apps/edr-freight-web/portal/src/services/tracking.service.ts
2026-05-23 11:54:13 +03:00

13 lines
313 B
TypeScript

import type { Freight } from "@edr/types";
import { client } from "../utils/api";
export const trackingService = {
forConsignment: async (
consignmentId: string,
): Promise<Freight.ITrackingEvent[]> => {
const { data } = await client.get(`/tracking/${consignmentId}`);
return data.data;
},
};