你能帮我理解下面的代码吗?似乎这里的 get 方法接收 3 个参数而不是 2.. 它对作为第三个参数提供给它的对象做了什么?
app.get('/query', function(req, res) {
console.error('we shouldn't be here');
res.writeHead(500);
res.end('we shouldn't be here' + req.url);
},
{
id: 'my_id',
name: 'query',
usage: 'get query',
example: 'get query',
params: {},
broadcast: true,
response: { representations : [ 'application/json' ] }
}
);
谢谢,李