Download src/app/api/route.ts from simikkk/test8: direct link, hf CLI and curl.
- Browser
- Download file 246 Bytes
-
https://huggingface.co/spaces/simikkk/test8/resolve/main/src/app/api/route.ts
- Command line
-
hf download hf://spaces/simikkk/test8/src/app/api/route.ts
-
curl -L -o route.ts https://huggingface.co/spaces/simikkk/test8/resolve/main/src/app/api/route.ts
246 Bytes
| import { NextRequest, NextResponse } from 'next/server'; | |
| import { withDb } from '@/lib/api-handler'; | |
| async function handler(_request: NextRequest) { | |
| return NextResponse.json({ message: 'Hello, world!' }); | |
| } | |
| export const GET = withDb(handler); |