Download next.js/test/development/app-dir/app-routes-error/hello.js from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 413 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/next.js/test/development/app-dir/app-routes-error/hello.js
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/next.js/test/development/app-dir/app-routes-error/hello.js
-
curl -L -o hello.js https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/next.js/test/development/app-dir/app-routes-error/hello.js
413 Bytes
| const helloHandler = async () => { | |
| if (typeof WebSocket === 'undefined') { | |
| throw new Error('missing WebSocket constructor!!') | |
| } | |
| return new Response('hello, world') | |
| } | |
| export const GET = helloHandler | |
| export const HEAD = helloHandler | |
| export const OPTIONS = helloHandler | |
| export const POST = helloHandler | |
| export const PUT = helloHandler | |
| export const DELETE = helloHandler | |
| export const PATCH = helloHandler | |