Files
diyaa.de/middleware.ts
T

11 lines
223 B
TypeScript

import NextAuth from "next-auth";
import authConfig from "@/lib/auth.config";
export const { auth: middleware } = NextAuth(authConfig);
export default middleware;
export const config = {
matcher: ["/admin/:path*"],
};