Question 20/20
intermediate
Select one answer

How do you create API routes in App Router?

Create files in pages/api directory
Create route.ts files and export named functions for HTTP methods (GET, POST, etc.)
Use the createAPI() function
Add routes to next.config.js

Premium Question

Upgrade to unlock this question and 300+ more interview prep MCQs.