Download client/src/actions/feedback.js from linuxrun/deer: direct link, hf CLI and curl.
- Browser
- Download file 236 Bytes
-
https://huggingface.co/spaces/linuxrun/deer/resolve/main/client/src/actions/feedback.js
- Command line
-
hf download hf://spaces/linuxrun/deer/client/src/actions/feedback.js
-
curl -L -o feedback.js https://huggingface.co/spaces/linuxrun/deer/resolve/main/client/src/actions/feedback.js
236 Bytes
| import axios from 'axios'; | |
| export function sendHello (msg, callback = () => {}) { | |
| return (dispatch) => { | |
| axios.post('/api/hello', { | |
| msg, | |
| }) | |
| .then((res) => { | |
| console.log('## res is: ', res.data) | |
| }); | |
| }; | |
| } | |