File size: 483 Bytes
d35c7df
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
import axios from 'axios';

export const getHelpContent = async () => {
  return axios.get('/api/help-content');
};

export const updateHelpContent = async (content) => {
  return axios.put('/api/help-content', { content });
};

export const importHelpContent = async (file) => {
  const formData = new FormData();
  formData.append('file', file);
  return axios.post('/api/help-content/import', formData, {
    headers: {
      'Content-Type': 'multipart/form-data',
    },
  });
};