| 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', | |
| }, | |
| }); | |
| }; |