before(app){
app.get('/channel',function (req,res) {
var channel=''
var url=encodeURI('http://api.jisuapi.com/news/channel?appkey=ca05a06b9221f5d1')
axios.get(url,{
headers:{
referer:'http:/api.jisuapi.com/',
host:'api.jisuapi.com'
},
params:req.query
}).then(response=>{
red.json(response.data)
}).catch(error=>{
consloe.log(error)
})
})
}
Keyro
相关分类