Download My Free Route Handlers Cheat Sheet: https://bit.ly/route-handlers-cc
Learn how to get POST request body in Route Handlers! Next.js 13 introduced app folder and with it came Route Handlers that are replacement for API routes. In this video we take a closer look on what kind of things we can do with Next js 13 Route Handlers. This includes how to use cookies, headers, redirects, dynamic route segments and how to get body from a POST request.
Learn Programming (Skillshare FREE trial): https://skl.sh/3cYxUP5
My courses:
React basics: https://skl.sh/2XAKn7u
HTML & CSS for beginners: https://skl.sh/34wvGUH
Draft.js basics: https://skl.sh/3cJ5Hw4
💻 MY GEAR
MY CODIGN LAPTOP: https://amzn.to/3MI90ci
MY MOUSE: https://amzn.to/3mr3no9
MY KEYBOARD: https://amzn.to/3GIoMjh
MY MICROPHONE: https://amzn.to/3KCDPfv
MICROPHONE BOOSTER: https://amzn.to/43trLWB
MY MICROPHONE ARM: https://amzn.to/3oaf5DW
MY CAMERA: https://amzn.to/3UxyvyJ
MY STREAMING LIGHT: https://amzn.to/3KE0PuE
Connect with me:
Website: https://tuomokankaanpaa.com
My newsletter: https://tuomokankaanpaa.com/newsletter
Twitter: / tumee
Skillshare: https://www.skillshare.com/r/user/tume
Timestamps
00:00 What is this video about
00:26 Project setup
01:06 Cookies
06:14 Headers
09:17 Redirect
10:31 Dynamic Route Segments
13:28 POST request body
#nextjs #nextjs13 #apiroutes