add redirect to login when user on page which requires account #3

Merged
brandonegg merged 2 commits from add-next-auth-middleware into main 2023-08-30 21:37:13 -05:00
Showing only changes of commit 5c907a9808 - Show all commits

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",
};