Kind: global class
Param | Type |
---|---|
req | object |
res | object |
send an error
Kind: instance method of ABResponseAPI
Param | Type | Default | Description |
---|---|---|---|
error | Error |
||
[code] | number | string |
400 |
response code |
send 401 with a Reauthenticate message
Kind: instance method of ABResponseAPI
send a success message with data
Kind: instance method of ABResponseAPI
Param | Type | Default | Description |
---|---|---|---|
data | object |
||
[code] | number |
200 |
http response code |
[skipHeaders] | boolean |
false |