nodejs 有比较完善的权限框架吗?

nodejs 有比较完善的权限框架吗


喵喔喔
浏览 731回答 1
1回答

慕娘9325324

sails有个policy目录policies.js{ProfileController: {// Apply the 'isLoggedIn' policy to the 'edit' action of 'ProfileController'edit: 'isLoggedIn'// Apply the 'isAdmin' AND 'isLoggedIn' policies, in that order, to the 'create' actioncreate: ['isAdmin', 'isLoggedIn']}}里面可以写各种限制设置
打开App,查看更多内容
随时随地看视频慕课网APP

相关分类

Node.js