add redirect to login when user on page which requires account

This commit is contained in:
Brandon Egger 2023-08-30 21:33:11 -05:00
parent a35297728c
commit ad4e35a04c

5
src/middleware.ts Normal file
View File

@ -0,0 +1,5 @@
export { default } from "next-auth/middleware"
export const config = {
matcher: '/resources/:id/edit',
}