Download src/proxy.ts from automindy/fiemwl: direct link, hf CLI and curl.
- Browser
- Download file 516 Bytes
-
https://huggingface.co/spaces/automindy/fiemwl/resolve/main/src/proxy.ts
- Command line
-
hf download hf://spaces/automindy/fiemwl/src/proxy.ts
-
curl -L -o proxy.ts https://huggingface.co/spaces/automindy/fiemwl/resolve/main/src/proxy.ts
516 Bytes
| import type { NextRequest } from "next/server"; | |
| import { runAuthzPipeline } from "./server/authz/pipeline"; | |
| export async function proxy(request: NextRequest) { | |
| return runAuthzPipeline(request, { enforce: true }); | |
| } | |
| export const config = { | |
| matcher: [ | |
| "/", | |
| "/dashboard/:path*", | |
| "/home", | |
| "/home/:path*", | |
| "/api/:path*", | |
| "/v1/:path*", | |
| "/v1", | |
| "/chat/:path*", | |
| "/responses/:path*", | |
| "/responses", | |
| "/codex/:path*", | |
| "/codex", | |
| "/models", | |
| ], | |
| }; | |