Function LRPCCallback

  • This decorator is used to mark a field in a LrpcPayload as a callback This spreads the endpoint and makes the url to be /controller/endpoint rather than send it as a procedure in body of request as { path: 'service.controller.endpoint', data: { // data } LRPCCallback('https://google.com') @LRPCAuth() @LRPCFunction(controller, sampleRequest, sampleResponse) async handler(data: LRPCRequest): Promise<BaseResponse> {}

    Parameters

    • target: any
    • propertyKey: string
    • descriptor: PropertyDescriptor

    Returns void