The API route has been updated. (#441)

This commit is contained in:
Algoinde 2023-02-06 18:25:55 +05:00 committed by GitHub
parent df3e645cf1
commit c782bb0025
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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
} }
} }