Middleware protected routes

This commit is contained in:
Brad Traversy
2024-07-10 10:45:02 -04:00
parent 74ea4baed8
commit 5417ba807d
2 changed files with 25 additions and 16 deletions
+5
View File
@@ -0,0 +1,5 @@
export { default } from 'next-auth/middleware';
export const config = {
matcher: ['/properties/add', '/profile', '/properties/saved', '/messages'],
};