NuxtN
Nuxt16mo ago
Edik

$fetch inside API

Hello, I try to do a nested fetch. First one is Clientside inside a page
$fetch("/api/someApi"),
second inside the server in this api inside
defineEventHandler(async (event) => { $fetch("/api/secondApi") })


Why the second one doesnt work, and how to make a fetch from API to API?
Was this page helpful?