javascript - Questions about the mock interface of react and dva
欧阳克
欧阳克 2017-07-05 10:52:30

I made a registration page using dva, using the fake interface of roadhogrc. The server can receive the POST request, but it can’t get req.body. What should I do? I’m so anxious. What should I do? It’s been a whole morning, can anyone help me aaaa...QAQ...
github link

[`POST /api/signin`](req,res){
        const user = req.body;
        console.log(user) //undefined
        res.json('123')
    }
欧阳克
欧阳克

温故而知新,可以为师矣。 博客:www.ouyangke.com

reply all(2)
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!