From c782bb002569ac040589d6e7014a8f0ffc10d485 Mon Sep 17 00:00:00 2001 From: Algoinde Date: Mon, 6 Feb 2023 18:25:55 +0500 Subject: [PATCH] The API route has been updated. (#441) --- config/system/profile_system.js | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/config/system/profile_system.js b/config/system/profile_system.js index 9a4c0ca5..a977166d 100644 --- a/config/system/profile_system.js +++ b/config/system/profile_system.js @@ -25,11 +25,7 @@ export const enkaApi = { url: 'https://enka.network/', userAgent: 'Miao-Plugin/3.0', listApi: ({ url, uid, diyCfg }) => { - let api = `${url}u/${uid}/__data.json` - if (diyCfg?.apiKey) { - api += '?key=' + diyCfg.apiKey - } - return api + return api `${url}api/uid/${uid}/` } }