14 - Build basic and dynamic API routes with Next.js to create/read/update/delete data in FaunaDB
ฝัง
- เผยแพร่เมื่อ 14 ต.ค. 2024
- ► Check out screencasts.al... for more episodes!
► Learn to build your own production-ready React applications and become a successful React developer: alterclass.io/...
► Be on top of the best and hottest web technologies: alterclass.io/...
--
API routes provide a solution to build our API within our Next.js application.
Any file inside the folder pages/api is mapped to /api/* and treated as an API endpoint instead of a regular client-side page. Those API endpoints are hosted on the server and don't increase the client-side bundle size.
In this lesson, we'll create all the API endpoints to handle the resources from our Fauna database.
amazing!!!