diff options
Diffstat (limited to 'lib/anify')
| -rw-r--r-- | lib/anify/info.js | 4 | ||||
| -rw-r--r-- | lib/anify/page.js | 4 |
2 files changed, 3 insertions, 5 deletions
diff --git a/lib/anify/info.js b/lib/anify/info.js index 08d64aa..05159ce 100644 --- a/lib/anify/info.js +++ b/lib/anify/info.js @@ -3,9 +3,7 @@ import { redis } from "../redis"; export async function fetchInfo(id, key) { try { - const { data } = await axios.get( - `https://api.anify.tv/info/${id}?apikey=${key}` - ); + const { data } = await axios.get(`https://api.anify.tv/info/${id}`); return data; } catch (error) { console.error("Error fetching data:", error); diff --git a/lib/anify/page.js b/lib/anify/page.js index 0f0bb93..6362f88 100644 --- a/lib/anify/page.js +++ b/lib/anify/page.js @@ -1,10 +1,10 @@ import { redis } from "../redis"; // Function to fetch new data -async function fetchData(id, chapterNumber, providerId, chapterId, key) { +async function fetchData(id, chapterNumber, providerId, chapterId) { try { const res = await fetch( - `https://api.anify.tv/pages/${id}/${chapterNumber}/${providerId}/${chapterId}&apikey=${key}` + `https://api.anify.tv/pages/${id}/${chapterNumber}/${providerId}/${chapterId}` ); const data = await res.json(); return data; |