import { cookies } from "next/headers";
import { NextResponse } from "next/server";
import { isTokenExpired } from "./app/utils/helper";
import { chain } from "./app/middlewares/chain";
import { authMiddleware } from "./app/middlewares/authMiddleware";

const middlewares = [authMiddleware];
console.log('STARTTTTTTTTTTTTTT')
export default chain(middlewares)

export const config = {
    matcher: ['/dashboard/:path*', '/applications/:path*', '/courses/:path*', '/settings/:path*', '/students/:path*']
}