我试图将POST数据传递到外部流星的铁路由器路由,但它不起作用.请求正文为空.
我已经尝试输出请求体来检查数据是否存在,但它只是空的.
Router.route('/api/gatewaysusers', function() {
body = this.request.body;
console.log(this.request)
// this.response.write(body);
this.response.end("Call served");
}, {where: 'server'})
Run Code Online (Sandbox Code Playgroud)
任何的想法 ?谢谢.