我想通過POST數據從流星外部的鐵路由器路由,但它不工作。請求正文爲空。流星鐵路由器如何獲得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'})
任何想法?謝謝。
可能的重複[如何訪問流星中的請求參數?](http://stackoverflow.com/questions/11799079/how-do-i-access-request-parameters-in-meteor) – 2014-11-05 02:26:54
@ChristianFritz它是不是重複的。這裏的代碼非常好,問題出在'鐵路由器'方面。 – 2014-11-05 08:16:06