当我执行POST时,NodeJs / Express尝试获取

时间:2016-02-01 04:31:09

标签: node.js post express get

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>

0 个答案:

没有答案