Skip to content

ppagent / ISourceApiAction

Interface: ISourceApiAction

Defined in: src/source/source.ts:456

Properties

handler()

handler: (req, rep?) => Promise<any>

Defined in: src/source/source.ts:469

当type为normal时,将不会接收到rep,直接异步返回要响应的json即可 当type为custom时,需要自行处理reply的内容

Parameters

req

FastifyRequest

rep?

FastifyReply

Returns

Promise<any>


type

type: ISourceApiResponseType

Defined in: src/source/source.ts:461

当type为normal时,将不会接收到rep,直接异步返回要响应的json即可 当type为custom时,需要自行处理reply的内容