mirror of
https://github.com/NeteaseCloudMusicApiEnhanced/api-enhanced.git
synced 2026-10-24 00:21:23 +08:00
add album api & unit test, improve document
This commit is contained in:
+3
-1
@@ -6,7 +6,9 @@ router.get("/", (req, res) => {
|
||||
const keywords = req.query.keywords
|
||||
const type = req.query.type || 1
|
||||
const limit = req.query.limit || 30
|
||||
const data = 's=' + keywords + '&limit=' + limit + '&type=' + type + '&offset=0'
|
||||
const offset = req.query.offset || 0
|
||||
|
||||
const data = 's=' + keywords + '&limit=' + limit + '&type=' + type + '&offset=' + offset
|
||||
createRequest('/api/search/pc/', 'POST', data)
|
||||
.then(result => {
|
||||
res.setHeader("Content-Type", "application/json")
|
||||
|
||||
Reference in New Issue
Block a user