I have implemented two middlewares (verifyToken and verifyRole).
verifyToken middleware:
Ensures that only authenticated users can perform CRUD operations on the land.
verifyRole middleware+ updates to the logic of the landService file:
Only the admin and owner can delete, and update.
Both the admin and seller can create land.
I have implemented two middlewares (verifyToken and verifyRole).
verifyToken middleware: Ensures that only authenticated users can perform CRUD operations on the land.
verifyRole middleware+ updates to the logic of the landService file: Only the admin and owner can delete, and update. Both the admin and seller can create land.