Skip to content

Response error

Share data

g.res.shared is used to share data between post-hooks, pre-hooks, and code within that API.

g.res.shared = {'name': 'Joe'};
return g.res.shared.name;

Response

{
    "success": true,
    "statusCode": 200,
    "data": "Joe"
}