Download src/app/api/offcloud/status/route.ts from Zero124/VR-MEDIA: direct link, hf CLI and curl.
- Browser
- Download file 328 Bytes
-
https://huggingface.co/spaces/Zero124/VR-MEDIA/resolve/main/src/app/api/offcloud/status/route.ts
- Command line
-
hf download hf://spaces/Zero124/VR-MEDIA/src/app/api/offcloud/status/route.ts
-
curl -L -o route.ts https://huggingface.co/spaces/Zero124/VR-MEDIA/resolve/main/src/app/api/offcloud/status/route.ts
328 Bytes
| // GET /api/offcloud/status — Offcloud connection status for the dashboard. | |
| import { NextResponse } from "next/server"; | |
| import { testConnection } from "@/lib/offcloud"; | |
| export const dynamic = "force-dynamic"; | |
| export async function GET() { | |
| const conn = await testConnection(); | |
| return NextResponse.json(conn); | |
| } | |