mirror of
https://github.com/yoimiya-kokomi/miao-plugin.git
synced 2024-11-22 06:58:24 +00:00
The API route has been updated. (#441)
This commit is contained in:
parent
df3e645cf1
commit
c782bb0025
@ -25,11 +25,7 @@ export const enkaApi = {
|
|||||||
url: 'https://enka.network/',
|
url: 'https://enka.network/',
|
||||||
userAgent: 'Miao-Plugin/3.0',
|
userAgent: 'Miao-Plugin/3.0',
|
||||||
listApi: ({ url, uid, diyCfg }) => {
|
listApi: ({ url, uid, diyCfg }) => {
|
||||||
let api = `${url}u/${uid}/__data.json`
|
return api `${url}api/uid/${uid}/`
|
||||||
if (diyCfg?.apiKey) {
|
|
||||||
api += '?key=' + diyCfg.apiKey
|
|
||||||
}
|
|
||||||
return api
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user