Spaces:
Paused
Paused
Download src/app/api/compression/rules/route.ts from igorkurgin/omniroute: direct link, hf CLI and curl.
- Browser
- Download file 420 Bytes
-
https://huggingface.co/spaces/igorkurgin/omniroute/resolve/main/src/app/api/compression/rules/route.ts
- Command line
-
hf download hf://spaces/igorkurgin/omniroute/src/app/api/compression/rules/route.ts
-
curl -L -o route.ts https://huggingface.co/spaces/igorkurgin/omniroute/resolve/main/src/app/api/compression/rules/route.ts
420 Bytes
| import { NextResponse } from "next/server"; | |
| import { requireManagementAuth } from "@/lib/api/requireManagementAuth"; | |
| import { getCavemanRuleMetadata } from "@omniroute/open-sse/services/compression/cavemanRules"; | |
| export async function GET(req: Request) { | |
| const authError = await requireManagementAuth(req); | |
| if (authError) return authError; | |
| return NextResponse.json({ | |
| rules: getCavemanRuleMetadata(), | |
| }); | |
| } | |