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)),
};
