Download server/src/controllers/feedback.js from linuxrun/deer: direct link, hf CLI and curl.
- Browser
- Download file 240 Bytes
-
https://huggingface.co/spaces/linuxrun/deer/resolve/main/server/src/controllers/feedback.js
- Command line
-
hf download hf://spaces/linuxrun/deer/server/src/controllers/feedback.js
-
curl -L -o feedback.js https://huggingface.co/spaces/linuxrun/deer/resolve/main/server/src/controllers/feedback.js
240 Bytes
| import Feedback from '../models/feedback'; | |
| export async function addFeedback(req, res, next) { | |
| const { | |
| contact, | |
| content, | |
| } = req.body; | |
| await Feedback.query().insert({ | |
| contact, | |
| content, | |
| }); | |
| res.sendStatus(200); | |
| } | |