iya-sts
    Preparing search index...

    Variable respondToAction

    respondToAction: (req: any, res: any, target: any, result: any) => void = ...

    Type Declaration

      • (req: any, res: any, target: any, result: any): void
      • Answers a console form's POST.

        A JSON request gets 200 or 400 with the result, its errorCode removed; a form gets a 303 to target carrying notice or error.

        Parameters

        • req: any

          the request

        • res: any

          the response

        • target: any

          the page to send a browser back to

        • result: any

          the action's result, with ok and a message or errors

        Returns void