mirror of
https://github.com/Tria-plc/edr-platform.git
synced 2026-08-30 00:38:11 +00:00
13 lines
313 B
TypeScript
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;
|
|
},
|
|
};
|