Documentation
Api

Create an API route handler.

Create a new route handler.

We will be using route handlers in next.js to create api routes. Learn more

Route hanlders are create in the src/app/api folder.

src/app/api/folder-name/route.ts
export async function GET(request: Request) {}

On this page