Next.js Route Handlers | API Routes in Nextjs 13

Publicado em: 31 Março 2023
no canal de: Dave Gray
44,584
1.1k

Web Dev Roadmap for Beginners (Free!): https://bit.ly/DaveGrayWebDevRoadmap

Learn Next.js Route Handlers which replace API Routes in Nextjs 13. With Next.js, it is easy to create GET, POST, and more routes for full stack applications and retrieve the parameters sent with those requests.

💖 Support me on Patreon ➜   / davegray  

⭐ Become a full-stack web dev with Zero To Mastery Courses:
Complete Next.js Developer: https://bit.ly/CompNextJSDev
Advanced React: https://bit.ly/AdvReactDev
Junior to Senior Dev Roadmap: https://bit.ly/WebDevRoadmap-JrtoSr

🚩 Subscribe ➜ https://bit.ly/3nGHmNn

📬 Course Updates ➜ https://courses.davegray.codes/

❓ Questions - Please post them to my Discord ➜   / discord  

☕ Buy Me A Coffee ➜ https://www.buymeacoffee.com/davegray

👇 Follow Me On Social Media:
Github: https://github.com/gitdagray
Twitter:   / yesdavidgray  
LinkedIn:   / davidagray  

🔗 Source Code: https://github.com/gitdagray/next-js-...

🔗 Playlist for this Next.js Course: https://bit.ly/dg-nextjs

Next.js 13 Route Handlers | API Routes in Nextjs

(00:00) Intro
(00:05) Welcome
(00:28) Note on src directory
(01:23) New Route Handlers for API Routes
(02:51) Example API endpoint
(06:06) NextResponse
(07:59) GET Params & echo endpoint
(13:30) Dynamically Evaluated Routes
(14:30) POST Route Handler for a Form

📚 Tutorial References:
🔗 Next.js Official Site: https://nextjs.org/
🔗 Next.js 13 Beta Docs: https://beta.nextjs.org/docs
🔗 ES7 React Snippets Extension: https://marketplace.visualstudio.com/...

Was this Next.js tutorial about Route Handlers for API Routes helpful? If so, please share. Let me know your thoughts in the comments.

#nextjs #route #handlers


Nesta página do site você pode assistir ao vídeo on-line Next.js Route Handlers | API Routes in Nextjs 13 duração hora minuto segundo em boa qualidade , que foi baixado pelo usuário Dave Gray 31 Março 2023, compartilhe o link com seus amigos e conhecidos, no youtube este vídeo já foi visto 44,584 vezes e gostou 1.1 mil espectadores. Boa visualização!