Integrate backend into frontend with Next.com
Unanswered
Himalayan posted this in #help-forum
HimalayanOP
Hey guys, I already have a Fastify backend ready with the routes set up, everything's fine. Now I want to call these routes on the Next frontend, but I don't want to just create a use-hook.ts file and call fetch() and be done with it. I'd like project examples, like in the pictures. Something well-structured.
1 Reply
@Himalayan Hey guys, I already have a Fastify backend ready with the routes set up, everything's fine. Now I want to call these routes on the Next frontend, but I don't want to just create a use-hook.ts file and call fetch() and be done with it. I'd like project examples, like in the pictures. Something well-structured.
you can do it exactly like you see it on your pictures. Nextjs is nothing special in that point of view