Problem Statement
What file name is used for Route Handlers in the App Router?
Explanation
Route Handlers in App Router use the special file name route.js or route.ts placed in any app directory segment to create API endpoints, replacing the API routes from Pages Router with a more flexible system. You export named functions matching HTTP methods like GET, POST, PUT, DELETE, and PATCH that receive a Request object and return a Response, following the Web standards. Route Handlers can coexist with page.js files in the same segment by being at different paths, support dynamic routes with [param] folders, and can be Server Components for direct data access.