aboutsummaryrefslogtreecommitdiff
path: root/src/app/search
diff options
context:
space:
mode:
authorreal-zephex <[email protected]>2024-03-21 10:09:09 +0530
committerreal-zephex <[email protected]>2024-03-21 10:09:09 +0530
commitb7a9a93905c40a3b849021094cd46246d4eae32c (patch)
treeb7c627900460b2aee6583c5a6dd9c15096dd0fae /src/app/search
parentfixes: anime section is fully server rendered, added a loading screen for inf... (diff)
downloaddramalama-b7a9a93905c40a3b849021094cd46246d4eae32c.tar.xz
dramalama-b7a9a93905c40a3b849021094cd46246d4eae32c.zip
fixes: anime section is fully server rendered, added a loading screen for info and video page, minor css optimizations
Diffstat (limited to 'src/app/search')
-rw-r--r--src/app/search/api/fetchInfo.js9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/app/search/api/fetchInfo.js b/src/app/search/api/fetchInfo.js
new file mode 100644
index 0000000..6ac0e69
--- /dev/null
+++ b/src/app/search/api/fetchInfo.js
@@ -0,0 +1,9 @@
+"use server";
+
+export default async function testFunction(title) {
+ const res = await fetch(
+ "https://dramalama-api.vercel.app/anime/gogoanime/" + title
+ );
+ const data = await res.json();
+ return data;
+}