aboutsummaryrefslogtreecommitdiff
path: root/src/app/search/components/fetchInfo.js
blob: f843dff446493b5809a690a2b83ace8726876593 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
"use server";

export default async function Results(id) {
	return await testFunction(id);
}

async function testFunction(title) {
	const res = await fetch(
		"https://dramalama-api.vercel.app/anime/gogoanime/" + title,
		{ cache: "force-cache" }
	);
	const data = await res.json();
	return data;
}