mirror of
https://gitlab.com/Binaryify/neteasecloudmusicapi.git
synced 2025-07-07 01:12:06 +08:00
change router export mode
This commit is contained in:
33
module/mv_first.js
Normal file
33
module/mv_first.js
Normal file
@ -0,0 +1,33 @@
|
||||
//最新mv
|
||||
|
||||
// type ALL, ZH,EA,KR,JP
|
||||
// module.exports = (req, res, createWebAPIRequest, request) => {
|
||||
// const cookie = req.get("Cookie") ? req.get("Cookie") : "";
|
||||
// const data = {
|
||||
// // 'offset': req.query.offset || 0,
|
||||
// total: true,
|
||||
// limit: req.query.limit || 30,
|
||||
// csrf_token: ""
|
||||
// };
|
||||
// createWebAPIRequest(
|
||||
// "music.163.com",
|
||||
// "/weapi/mv/first",
|
||||
// "POST",
|
||||
// data,
|
||||
// cookie,
|
||||
// music_req => res.send(music_req),
|
||||
// err => res.status(502).send("fetch error")
|
||||
// );
|
||||
// };
|
||||
|
||||
module.exports = (query, request) => {
|
||||
const data = {
|
||||
// 'offset': req.query.offset || 0,
|
||||
limit: req.query.limit || 30,
|
||||
total: true
|
||||
}
|
||||
return request(
|
||||
'POST', `http://music.163.com/weapi/mv/first`, data,
|
||||
{crypto: 'weapi', cookie: query.cookie, proxy: query.proxy}
|
||||
)
|
||||
}
|
Reference in New Issue
Block a user