json
Response method responsible for handling json style payloads
Arguments
Name
Type
Description
code
Number
The status code to set for the response
data
Any
The json payload to send back to the requester
You must supply both arguments at some point within your handler or the function will throw an error on request
Usage
Last updated
Was this helpful?