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:

  1. app/
  2. api/
  3. route.js
  4. export async function GET()