2013-10-04 67 views

回答

1

您需要編寫一箇中間件來接受這樣的請求。

WebApp.connectHandlers.stack.splice(0, 0, { 
    route: '/your/url/for/inputs', 
    handle: function(req, res, next) { 

     // Handle request and response 
     // just like you would do in node.js. 

     // Make sure to wrap your db calls in Fibers. 

     // Use next() if you change your mind 
     // and don't want to handle this request after all. 

    }, 
}); 
+0

這當然也是如此,它只是上面的鏈接更深入,不幸的是我不能檢查兩個,我沒有足夠高的評級來按下向上的箭頭。 –

相關問題