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 5c907a9808

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