Download src/app/api/auth/[...nextauth]/route.ts from Jessedbrown/ipa-activity-generator-ptbr: direct link, hf CLI and curl.
- Browser
- Download file 390 Bytes
-
https://huggingface.co/Jessedbrown/ipa-activity-generator-ptbr/resolve/main/src/app/api/auth/%5B...nextauth%5D/route.ts
- Command line
-
hf download 'hf://Jessedbrown/ipa-activity-generator-ptbr/src/app/api/auth/[...nextauth]/route.ts'
-
curl -L -o route.ts https://huggingface.co/Jessedbrown/ipa-activity-generator-ptbr/resolve/main/src/app/api/auth/%5B...nextauth%5D/route.ts
390 Bytes
| import { NextRequest } from "next/server"; | |
| import { handlers } from "@/lib/auth"; | |
| import { applyRateLimit, rateLimitPolicies } from "@/lib/rate-limit"; | |
| export async function POST(request: NextRequest) { | |
| const limited = await applyRateLimit(request, rateLimitPolicies.login); | |
| if (limited) { | |
| return limited; | |
| } | |
| return handlers.POST(request); | |
| } | |
| export const GET = handlers.GET; | |