aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorreal-zephex <[email protected]>2024-03-21 19:19:54 +0530
committerreal-zephex <[email protected]>2024-03-21 19:19:54 +0530
commit8a086256722e6150b45791e86d0bc6d407146c28 (patch)
tree9066c5742a74ce82bafc6947704fa22073fee004
parentchanges: reverted to previous commit (diff)
downloaddramalama-8a086256722e6150b45791e86d0bc6d407146c28.tar.xz
dramalama-8a086256722e6150b45791e86d0bc6d407146c28.zip
fix: trying to fix the endpoints
-rw-r--r--src/app/info/[id]/page.jsx2
-rw-r--r--src/app/kdrama/api/fetchAnime.js2
-rw-r--r--src/app/video/[animeId]/page.jsx2
3 files changed, 4 insertions, 2 deletions
diff --git a/src/app/info/[id]/page.jsx b/src/app/info/[id]/page.jsx
index 5048612..5120128 100644
--- a/src/app/info/[id]/page.jsx
+++ b/src/app/info/[id]/page.jsx
@@ -42,7 +42,7 @@ export default async function AnimeInfo({ params }) {
async function getAnimeInfo(anime_id) {
const res = await fetch(
- "https://anime-sensei-api.vercel.app/anime/gogoanime/info/" + anime_id
+ "https://dramalama-api.vercel.app/anime/gogoanime/info/" + anime_id
);
const data = res.json();
return data;
diff --git a/src/app/kdrama/api/fetchAnime.js b/src/app/kdrama/api/fetchAnime.js
index fcfc014..75b6758 100644
--- a/src/app/kdrama/api/fetchAnime.js
+++ b/src/app/kdrama/api/fetchAnime.js
@@ -1,3 +1,5 @@
+"use server";
+
export async function fetchAnimeInfo(title) {
const res = await fetch(
"https://dramalama-api.vercel.app/movies/dramacool/" + title
diff --git a/src/app/video/[animeId]/page.jsx b/src/app/video/[animeId]/page.jsx
index 02f6197..2285657 100644
--- a/src/app/video/[animeId]/page.jsx
+++ b/src/app/video/[animeId]/page.jsx
@@ -48,7 +48,7 @@ export default async function Video({ params }) {
async function getVideoLink(id) {
const res = await fetch(
- "https://anime-sensei-api.vercel.app/anime/gogoanime/watch/" + id
+ "https://dramalama-api.vercel.app/anime/gogoanime/watch/" + id
);
const data = res.json();
return data;