Skip to main content

Quiz: API Routes

Test what you learned in this lesson before moving on.

Lesson Quiz

Pass with 80% to complete this lesson.

1. Which file name does Next.js App Router use for API route handlers?

2. How do you access query parameters in a route handler?

3. What is the correct way to return a 201 Created response with JSON?

4. Where should middleware.ts be placed in a Next.js project?