This commit is contained in:
parent
5351ea6ecf
commit
08d4170f7e
@ -485,7 +485,7 @@ class NetTool extends NetToolBase {
|
||||
* @param data - 响应数据。
|
||||
* @returns 一个表示200 OK的响应对象。
|
||||
*/
|
||||
json(data: any) {
|
||||
json(data = {}) {
|
||||
this.logger.info(`return a json response: ${JSON.stringify(data)}`)
|
||||
return Response.json(data)
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user