Download next.js/test/e2e/app-dir/app-simple-routes/app/api/node.json/route.ts from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 172 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/next.js/test/e2e/app-dir/app-simple-routes/app/api/node.json/route.ts
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/next.js/test/e2e/app-dir/app-simple-routes/app/api/node.json/route.ts
-
curl -L -o route.ts https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/next.js/test/e2e/app-dir/app-simple-routes/app/api/node.json/route.ts
172 Bytes
| import { NextRequest, NextResponse } from 'next/server' | |
| export const GET = (req: NextRequest) => { | |
| return NextResponse.json({ | |
| pathname: req.nextUrl.pathname, | |
| }) | |
| } | |