lucia-auth / lucia

Authentication, simple and clean
https://lucia-auth.com
MIT License
9.19k stars 467 forks source link

Update "API Routes" to "Route Handlers" in Next.js App Router documentation #1689

Closed R1013-T closed 3 weeks ago

R1013-T commented 3 weeks ago

Update "API Routes" to "Route Handlers" in Next.js App Router documentation

Description

This PR updates the terminology in the Next.js App Router documentation from "API Routes" to "Route Handlers". This change aligns the documentation with the current Next.js terminology, improving clarity and consistency for users implementing authentication with the App Router.

Changes

Example of changes

Before:

Create an API routes in `app/login/github/route.ts`.

After:

Create a Route Handlers in `app/login/github/route.ts`.

Motivation

The current documentation uses outdated terminology from the Pages Router, which may confuse users implementing authentication with the newer App Router. This update ensures the documentation accurately reflects the current Next.js best practices.

Additional Notes

I believe this small change aligns with the project's goals of maintaining simplicity and clarity in the documentation. If any adjustments are needed or if you'd prefer a different approach, please let me know.

pilcrowOnPaper commented 3 weeks ago

Thanks!