blob: 4df04c8c6e42722e63e950d42d01a4adb239354f (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
<?php
/**
* UserFrosting (http://www.userfrosting.com)
*
* @link https://github.com/userfrosting/UserFrosting
* @license https://github.com/userfrosting/UserFrosting/blob/master/licenses/UserFrosting.md (MIT License)
*/
/**
* Routes for administrative permission management.
*/
$app->group('/permissions', function () {
$this->get('', 'UserFrosting\Sprinkle\Admin\Controller\PermissionController:pageList')
->setName('uri_permissions');
$this->get('/p/{id}', 'UserFrosting\Sprinkle\Admin\Controller\PermissionController:pageInfo');
})->add('authGuard');
$app->group('/api/permissions', function () {
$this->get('', 'UserFrosting\Sprinkle\Admin\Controller\PermissionController:getList');
$this->get('/p/{id}', 'UserFrosting\Sprinkle\Admin\Controller\PermissionController:getInfo');
$this->get('/p/{id}/users', 'UserFrosting\Sprinkle\Admin\Controller\PermissionController:getUsers');
})->add('authGuard');
|