Open NicolasKieffer opened 23 hours ago
src/middleware/permissions.js
- Permissions middlewaresrc/utils/permissionsManager.js
- Permissions management utilityscripts/manage_permissions.js
- CLI tool for managing permissionsconf/permissions.json
- Configuration file for storing permissionsnpm run manage-permissions add <path> <method> [allowed] [blocked]
npm run manage-permissions remove <path> <method>
npm run manage-permissions allow <path> <method> <userId>
npm run manage-permissions block <path> <method> <userId>
npm run manage-permissions list
To restrict access to certain routes and authorise them only for certain users