Authentication And Serive Engineer Portal is added
This commit is contained in:
11
middleware.ts
Normal file
11
middleware.ts
Normal file
@@ -0,0 +1,11 @@
|
||||
import { withAuth } from "next-auth/middleware"
|
||||
|
||||
export default withAuth({
|
||||
pages: {
|
||||
signIn: "/login",
|
||||
},
|
||||
})
|
||||
|
||||
export const config = {
|
||||
matcher: ["/dashboard/:path*"],
|
||||
}
|
||||
Reference in New Issue
Block a user