Prepare Interview

Mock Exams

Make Homepage

Bookmark this page

Subscribe Email Address

Question: What is the purpose of 'API routes' in Next.js?
Answer: API routes in Next.js allow you to build serverless functions that handle backend logic. These routes are defined in the 'pages/api' directory.
Is it helpful? Yes No

Most helpful rated by users:

©2025 WithoutBook