From b25e1cab2d4c4c056a6b2ac93254eb28cd4ddeee Mon Sep 17 00:00:00 2001 From: ilia Date: Sun, 4 Jan 2026 13:22:38 -0500 Subject: [PATCH] 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. --- proxy.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/proxy.ts b/proxy.ts index 8f2e9b1..0429e92 100644 --- a/proxy.ts +++ b/proxy.ts @@ -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