pap.post('/API/Phone/Say', ApiPhone.Say);
exports.Say = function(req, res, next)
{
}, function()
{
});
//Render the TwiML document using "toString"
res.writeHead(200,
{
'Content-Type':'text/xml'
});
res.end(resp.toString());
};
http://localhost:8080/api/Phone/Say
Cannot GET /api/Phone/Say
PostMan给了我正确的回复
<?xml version="1.0" encoding="UTF-8"?>
<Response>
</Response>