Next.js Interview Questions and Answers
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. |
Save For Revision
Bookmark this item, mark it difficult, or place it in a revision set.
Log in to save bookmarks, difficult questions, and revision sets.
Is it helpful? Yes No
Most helpful rated by users: