Download api/helpContent.js from tuandesu/undefined: direct link, hf CLI and curl.
- Browser
- Download file 483 Bytes
-
https://huggingface.co/spaces/tuandesu/undefined/resolve/main/api/helpContent.js
- Command line
-
hf download hf://spaces/tuandesu/undefined/api/helpContent.js
-
curl -L -o helpContent.js https://huggingface.co/spaces/tuandesu/undefined/resolve/main/api/helpContent.js
483 Bytes
| 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', | |
| }, | |
| }); | |
| }; |