mirror of
https://github.com/diegosouzapw/OmniRoute.git
synced 2026-07-31 12:22:14 +03:00
Integrated release/v3.7.2 changes — refreshed web client user agents, env docs, Gemini OAuth fix
23 lines
459 B
TypeScript
23 lines
459 B
TypeScript
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*",
|
|
"/api/:path*",
|
|
"/v1/:path*",
|
|
"/v1",
|
|
"/chat/:path*",
|
|
"/responses/:path*",
|
|
"/responses",
|
|
"/codex/:path*",
|
|
"/codex",
|
|
"/models",
|
|
],
|
|
};
|