import api from '@/core/api/axios';

const BASE = '/api/wtm';

export const settingsService = {
  getOverheadTypes: () => api.get(`${BASE}/overhead-types`),
  createOverheadType: (data: unknown) => api.post(`${BASE}/overhead-types`, data),
  updateOverheadType: (id: number, data: unknown) => api.put(`${BASE}/overhead-types/${id}`, data),
  getWorkRules: () => api.get(`${BASE}/work-rules`),
  updateWorkRules: (data: unknown) => api.put(`${BASE}/work-rules`, data),
};
