aboutsummaryrefslogtreecommitdiff
path: root/src/app/anime/search/components/fetchInfo.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/app/anime/search/components/fetchInfo.js')
-rw-r--r--src/app/anime/search/components/fetchInfo.js14
1 files changed, 0 insertions, 14 deletions
diff --git a/src/app/anime/search/components/fetchInfo.js b/src/app/anime/search/components/fetchInfo.js
deleted file mode 100644
index 2f81345..0000000
--- a/src/app/anime/search/components/fetchInfo.js
+++ /dev/null
@@ -1,14 +0,0 @@
-"use server";
-
-export default async function Results(id) {
- return await testFunction(id);
-}
-
-async function testFunction(title) {
- const res = await fetch(
- "https://consumet-jade.vercel.app/anime/gogoanime/" + title,
- { next: { revalidate: 21600 } }
- );
- const data = await res.json();
- return data;
-}