refactor: Rename middleware function to proxy for clarity

- Updated the function name from middleware to proxy to better reflect its purpose in handling requests.
- Ensured consistency in naming conventions across the codebase.
This commit is contained in:
ilia 2026-01-04 13:22:38 -05:00
parent 014bb983ad
commit b25e1cab2d

View File

@ -2,7 +2,7 @@ import { NextResponse } from "next/server"
import type { NextRequest } from "next/server"
import { getToken } from "next-auth/jwt"
export async function middleware(request: NextRequest) {
export async function proxy(request: NextRequest) {
const pathname = request.nextUrl.pathname
// Public routes - allow access