Put in order · Next.js course · Module 1: Next.js Configuration
Path to a Route Handler
Arrange the path to a Route Handler file in Next.js, followed by the function the file exports
Items to put in order
- api/
- route.js
- app/
- export async function GET()
Show the answer
Correct order:
- app/
- api/
- route.js
- export async function GET()