Files
edr-platform/apps/edr-freight-web/portal/src/services/tracking.service.ts
Michael Abebe 1c5ee19388 chore: fmt
2026-05-12 16:50:18 +03:00

13 lines
307 B
TypeScript

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