endpoint定义修改
This commit is contained in:
parent
056a7a58e8
commit
2f895a4785
|
|
@ -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;
|
||||
}>;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}>;
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in New Issue