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:
parent
014bb983ad
commit
b25e1cab2d
2
proxy.ts
2
proxy.ts
@ -2,7 +2,7 @@ import { NextResponse } from "next/server"
|
|||||||
import type { NextRequest } from "next/server"
|
import type { NextRequest } from "next/server"
|
||||||
import { getToken } from "next-auth/jwt"
|
import { getToken } from "next-auth/jwt"
|
||||||
|
|
||||||
export async function middleware(request: NextRequest) {
|
export async function proxy(request: NextRequest) {
|
||||||
const pathname = request.nextUrl.pathname
|
const pathname = request.nextUrl.pathname
|
||||||
|
|
||||||
// Public routes - allow access
|
// Public routes - allow access
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user