Download src/app/api/admin/sync-auth/route.ts from HonzaH/Letschat: direct link, hf CLI and curl.
- Browser
- Download file 424 Bytes
-
https://huggingface.co/spaces/HonzaH/Letschat/resolve/main/src/app/api/admin/sync-auth/route.ts
- Command line
-
hf download hf://spaces/HonzaH/Letschat/src/app/api/admin/sync-auth/route.ts
-
curl -L -o route.ts https://huggingface.co/spaces/HonzaH/Letschat/resolve/main/src/app/api/admin/sync-auth/route.ts
424 Bytes
| import { NextRequest, NextResponse } from 'next/server' | |
| export async function POST(_request: NextRequest) { | |
| // Temporary sync endpoint disabled — removed for safety. | |
| // If you need to run a one-off migration, re-introduce a secure script outside of the app routes. | |
| console.warn('sync-auth route disabled. Remove this file if not needed.') | |
| return NextResponse.json({ error: 'Not found' }, { status: 404 }) | |
| } |