diff options
Diffstat (limited to 'src/app/search/api/fetchInfo.js')
| -rw-r--r-- | src/app/search/api/fetchInfo.js | 9 |
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; +} |