mirror of
https://github.com/Tria-plc/edr-platform.git
synced 2026-08-28 10:10:57 +00:00
10 lines
348 B
TypeScript
10 lines
348 B
TypeScript
import { api as apiClient } from '../auth/http';
|
|
|
|
import { URL_CONSTANTS } from '@/constants/URLS';
|
|
import type { Facility } from '@/types/warehouse';
|
|
|
|
export const facilityService = {
|
|
list: () => apiClient.get<Facility[]>(URL_CONSTANTS.FACILITIES.BASE),
|
|
getById: (id: string) => apiClient.get<Facility>(URL_CONSTANTS.FACILITIES.BY_ID(id)),
|
|
};
|