type DataConnectorRoute: (args) => Promise<object>;
Type to define an arbitrary non-action request to this server. Useful for handling webhook responses in the same
lambda that handles data actions
Parameters
Parameter | Type |
---|---|
args | object |
args.body | string |
args.headers | Record <string , string [] | string | undefined > |
args.query | Record <string , undefined | string > |
Returns
Promise
<object
>
body?
optional body: string;
headers?
optional headers: Record<string, string | undefined>;
status
status: number;