Merge pull request #3 from brandonegg/add-next-auth-middleware

add redirect to login when user on page which requires account
This commit is contained in:
Brandon Egger 2023-08-30 21:37:13 -05:00 committed by GitHub
commit 33b30264d9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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