@halix/action-sdk
    Preparing search index...

    Function prepareSuccessResponse

    • prepareSuccessResponse prepares a success response in the appropriate format. The action handler should return an ActionResponse response when the action is successful. If useBody is true, the response will be returned as an object with the HTTP response code and the ActionResponse in the body field. If useBody is false, the ActionResponse will be returned directly.

      Parameters

      Returns ActionResponse | { body: string; statusCode: number }

      Formatted success response; an ActionResponse unless useBody is true