marcoazn89 / route-protection
该软件包最新版本(dev-master)没有提供许可证信息。
dev-master
2016-10-11 21:54 UTC
This package is not auto-updated.
Last update: 2024-09-28 19:52:36 UTC
README
基于角色和访问类型的路由保护模块
OAuth2 配置
// Example. I bet you might want to request to make them work also based on GET, POST, etc, but for now get creative with the roles. $config = [ '/api/account[/]' => [ 'admin' => ['web','curl'] ], '/api/account/{id}[/]' => [ 'admin' => ['web','curl'], 'partner' => ['web'], 'user' => ['web'] ] ]