webapp实战中没有dev-server.js以下这段代码应该放置在哪呢?
apiRoutes.get('/getDisList', function (req, res){
var url = 'https://c.y.qq.com/splcloud/fcgi-bin/fcg_get_diss_by_tag.fcg'
axios.get(url, {
headers:{
refer: 'https://c.y.qq.com/',
host: 'c.y.qq.com'
},
params: req.query
}).then((response) => {
res.json(response.data)
}).catch((e) => {
console.log(e)
})
慕粉2010161592
慕码人5092043