1. 15
    Migrate Add Customer Api Route By Creating POST Method in Customer Route Handler
    3m 38s

Migrate Add Customer Api Route By Creating POST Method in Customer Route Handler

Ben Patton
InstructorBen Patton
Share this video with your friends

Social Share Links

Send Tweet

Migrating a POST route to the app router will look very familiar to the GET route that we already migrated.

Here we will covert our responses to return NextResponse json. All of the logic that was previously inside the API route is left the same.