用 REST客户端 发送的 post 请求如下:
content-type: application/json
{
"username": "string",
。。。
}
响应的函数如下:
(request, response) => {
const { username, 。。。 } = request.body
。。。
}
报错如下:
Cannot destructure property 'username' of 'request.body' as it is undefined.
不明白为什么undefined
请大家指点
谢谢!