File size: 400 Bytes
454ca1f
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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}`);