Calling route handler in client component #62779
-
Hi Guys! I am using next js 14 app router. In that i am making request to appwrite storage and for this i have my logic in route.ts file export async function Get(){
i want to call it in my client compnent using swr //
</> ) export default Hero |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Try renaming your method to // all uppercased
export function GET() {
// rest of your implementation |
Beta Was this translation helpful? Give feedback.
Try renaming your method to
GET
, all uppercased: