warungpos-ui / src /api /categories.js
Mhamdans17
feat: owner POS branch switcher, NIB renamed to bank_account_number, branch filter orders/kasir
454ca1f
Raw
History Blame Contribute Delete
361 Bytes
import api from './axios';
export const getCategories = (params = {}) =>
api.get('/api/categories/', { params });
export const createCategory = (data) =>
api.post('/api/categories/', data);
export const updateCategory = (id, data) =>
api.put(`/api/categories/${id}`, data);
export const deleteCategory = (id) =>
api.delete(`/api/categories/${id}`);