useFetch is not defined in server/api
I want to hit the Api using post method in server/api, but whenever i hit it, it return error 500 server error with message "useFetch is not defined"
5 Replies
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
☝️
(make sure to check the pinned forum thread)
Thankyou for the answer, if may i know, why this issue occured? is it not allowed to useFetch in server/api??
useFetch, useLazyFetch, useAsyncData and useLazyAsyncData only work during setup or Lifecycle Hooks
ah i seee, thankyou sir