Implementing Middleware

Hi guys been implementing Middleware to protect admin and user page but to some points I failed to protect two pages /adupload for admin to access and /home for only user to access. Below is the link to how I implemented it https://github.com/Revaycolizer/next-learn14/blob/main/middleware.ts
GitHub
next-learn14/middleware.ts at main · Revaycolizer/next-learn14
Contribute to Revaycolizer/next-learn14 development by creating an account on GitHub.
1 Reply
Revaycolizer
Revaycolizer14mo ago
Fixed
Want results from more Discord servers?
Add your server