endpoint定义修改

This commit is contained in:
Xu Chang 2025-04-15 11:50:38 +08:00
parent 056a7a58e8
commit 2f895a4785
2 changed files with 2 additions and 2 deletions

View File

@ -22,7 +22,7 @@ export interface FreeEndpoint<ED extends EntityDict & BaseEntityDict, BackCxt ex
method: 'get' | 'post' | 'put' | 'delete';
type: "free";
fn: (contextBuilder: () => Promise<BackCxt>, params: Record<string, string>, headers: IncomingHttpHeaders, req: IncomingMessage, body?: any) => Promise<{
contentType: string;
headers?: Record<string, string | string[]>;
data: any;
}>;
}

View File

@ -26,7 +26,7 @@ export interface FreeEndpoint<ED extends EntityDict & BaseEntityDict, BackCxt ex
type: "free";
fn: (contextBuilder: () => Promise<BackCxt>, params: Record<string, string>, headers: IncomingHttpHeaders,
req: IncomingMessage, body?: any) => Promise<{
contentType: string;
headers?: Record<string, string | string[]>;
data: any;
}>;
};