Download next.js/test/integration/api-support/pages/api/parsing.js from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 171 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/next.js/test/integration/api-support/pages/api/parsing.js
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/next.js/test/integration/api-support/pages/api/parsing.js
-
curl -L -o parsing.js https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/next.js/test/integration/api-support/pages/api/parsing.js
171 Bytes
| export const config = { | |
| api: { | |
| bodyParser: true, | |
| }, | |
| } | |
| export default (req, res) => { | |
| if (req.body) { | |
| res.status(200).json({ message: 'Parsed body' }) | |
| } | |
| } | |