Build straightforward API with Next.js API routes

Xiaoru Li
InstructorXiaoru Li
Share this video with your friends

Social Share Links

Send Tweet
Published 5 years ago
Updated 4 years ago

The "API routes" in Next.js are Node.js serverless functions that we can easily incorporate into our app.

In this lesson, we will learn how to write API request handlers, and how to set up dynamic API routes. After this lesson, you'll be able to create simple API endpoints with Next.js ready to be used both in our frontend code within Next.js itself or for other general purposes.