Spaces:
Paused
Paused
Download src/app/api/init/route.ts from igorkurgin/omniroute: direct link, hf CLI and curl.
- Browser
- Download file 259 Bytes
-
https://huggingface.co/spaces/igorkurgin/omniroute/resolve/main/src/app/api/init/route.ts
- Command line
-
hf download hf://spaces/igorkurgin/omniroute/src/app/api/init/route.ts
-
curl -L -o route.ts https://huggingface.co/spaces/igorkurgin/omniroute/resolve/main/src/app/api/init/route.ts
259 Bytes
| import { ensureCloudSyncInitialized } from "@/lib/initCloudSync"; | |
| // This API route is called automatically to initialize sync | |
| export async function GET() { | |
| const initialized = await ensureCloudSyncInitialized(); | |
| return Response.json({ initialized }); | |
| } | |