Concept Flow - Catch-all API routes
Request comes in
Check API routes folder
Match specific route?
No→Match catch-all route?
Run specific handler
Send response
When a request arrives, Next.js first looks for a specific API route match. If none is found, it checks for a catch-all route to handle multiple paths dynamically.