mirror of
https://github.com/langgenius/dify.git
synced 2026-09-02 22:36:15 +08:00
Import the committed KnowledgeFS snapshot dc4072ee302317145612087ce7440851dc329fd0 under knowledge-fs/ without its Git history, local IDE settings, or build artifacts.
26 lines
754 B
TypeScript
26 lines
754 B
TypeScript
import { createAdminBffProxy } from "../../../../lib/bff";
|
|
|
|
const proxy = createAdminBffProxy();
|
|
|
|
interface RouteContext {
|
|
params: Promise<{
|
|
path?: string[];
|
|
}>;
|
|
}
|
|
|
|
export async function GET(request: Request, context: RouteContext): Promise<Response> {
|
|
return proxy.proxy(request, await context.params);
|
|
}
|
|
|
|
export async function POST(request: Request, context: RouteContext): Promise<Response> {
|
|
return proxy.proxy(request, await context.params);
|
|
}
|
|
|
|
export async function PATCH(request: Request, context: RouteContext): Promise<Response> {
|
|
return proxy.proxy(request, await context.params);
|
|
}
|
|
|
|
export async function DELETE(request: Request, context: RouteContext): Promise<Response> {
|
|
return proxy.proxy(request, await context.params);
|
|
}
|