1. 16
    Create a Dynamic API Route in Next.js App Router with the context Param
    2m 32s

Create a Dynamic API Route in Next.js App Router with the context Param

InstructorBen Patton

Share this video with your friends

Send Tweet

Dynamic API routes are similar to a dynamic page route. We can create a folder with the dynamic bracket syntax [customerId] that will map to the customer id found in the url.

The remaining syntax changes are utilizing NextResponse and exporting a GET function from the route.ts file.