shoc-frontend/src/pages/workorder/attachments/api.js

6 lines
314 B
JavaScript
Raw Normal View History

2025-04-01 14:07:58 -05:00
import { postFormBody, get } from '../../../apiUtil';
import { API_URL } from '../../../constants';
export const AddEditAttachments = (item) => postFormBody(`${API_URL}/WorkOrder/AddEditAttachments`, item);
export const getAttachments = (id) => get(`${API_URL}/WorkOrder/GetAttachmentsByWorkorderId?woid=${id}`);