diff --git a/examples/api-routes/next-env.d.ts b/examples/api-routes/next-env.d.ts deleted file mode 100644 index 4f11a03dc6cc3..0000000000000 --- a/examples/api-routes/next-env.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -/// -/// - -// NOTE: This file should not be edited -// see https://nextjs.org/docs/basic-features/typescript for more information. diff --git a/examples/api-routes/.gitignore b/examples/route-handlers/.gitignore similarity index 100% rename from examples/api-routes/.gitignore rename to examples/route-handlers/.gitignore diff --git a/examples/api-routes/README.md b/examples/route-handlers/README.md similarity index 79% rename from examples/api-routes/README.md rename to examples/route-handlers/README.md index fa03422638b95..927e58387e4d8 100644 --- a/examples/api-routes/README.md +++ b/examples/route-handlers/README.md @@ -1,6 +1,6 @@ # Basic API routes example -Next.js ships with [API routes](https://nextjs.org/docs/api-routes/introduction) which provides an easy solution to build your own `API`. This example shows how to create multiple `API` endpoints with serverless functions, which can execute independently. +Next.js ships with [Route Handlers](https://nextjs.org/docs/app/building-your-application/routing/route-handlers) which provides an easy solution to build your own `API`. This example shows how to create multiple `API` endpoints with serverless functions, which can execute independently. ## Deploy your own diff --git a/examples/api-routes/app/api/people/[id]/route.ts b/examples/route-handlers/app/api/people/[id]/route.ts similarity index 100% rename from examples/api-routes/app/api/people/[id]/route.ts rename to examples/route-handlers/app/api/people/[id]/route.ts diff --git a/examples/api-routes/app/api/people/route.ts b/examples/route-handlers/app/api/people/route.ts similarity index 100% rename from examples/api-routes/app/api/people/route.ts rename to examples/route-handlers/app/api/people/route.ts diff --git a/examples/api-routes/app/layout.tsx b/examples/route-handlers/app/layout.tsx similarity index 100% rename from examples/api-routes/app/layout.tsx rename to examples/route-handlers/app/layout.tsx diff --git a/examples/api-routes/app/page.tsx b/examples/route-handlers/app/page.tsx similarity index 100% rename from examples/api-routes/app/page.tsx rename to examples/route-handlers/app/page.tsx diff --git a/examples/api-routes/app/person/[id]/page.tsx b/examples/route-handlers/app/person/[id]/page.tsx similarity index 100% rename from examples/api-routes/app/person/[id]/page.tsx rename to examples/route-handlers/app/person/[id]/page.tsx diff --git a/examples/api-routes/components/Person.tsx b/examples/route-handlers/components/Person.tsx similarity index 100% rename from examples/api-routes/components/Person.tsx rename to examples/route-handlers/components/Person.tsx diff --git a/examples/api-routes/data.ts b/examples/route-handlers/data.ts similarity index 100% rename from examples/api-routes/data.ts rename to examples/route-handlers/data.ts diff --git a/examples/api-routes/interfaces/index.ts b/examples/route-handlers/interfaces/index.ts similarity index 100% rename from examples/api-routes/interfaces/index.ts rename to examples/route-handlers/interfaces/index.ts diff --git a/examples/api-routes/package.json b/examples/route-handlers/package.json similarity index 100% rename from examples/api-routes/package.json rename to examples/route-handlers/package.json diff --git a/examples/api-routes/tsconfig.json b/examples/route-handlers/tsconfig.json similarity index 100% rename from examples/api-routes/tsconfig.json rename to examples/route-handlers/tsconfig.json