warungpos-ui / src /api /branches.js
Mhamdans17
feat: owner POS branch switcher, NIB renamed to bank_account_number, branch filter orders/kasir
454ca1f
Raw
History Blame Contribute Delete
400 Bytes
import api from './axios';
export const getBranches = () =>
api.get('/api/branches/');
export const createBranch = (data) =>
api.post('/api/branches/', data);
export const updateBranch = (id, data) =>
api.put(`/api/branches/${id}`, data);
export const toggleBranch = (id) =>
api.put(`/api/branches/${id}/toggle`);
export const deleteBranch = (id) =>
api.delete(`/api/branches/${id}`);