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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
<?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 group management.
*/
$app->group('/groups', function () {
$this->get('', 'UserFrosting\Sprinkle\Admin\Controller\GroupController:pageList')
->setName('uri_groups');
$this->get('/g/{slug}', 'UserFrosting\Sprinkle\Admin\Controller\GroupController:pageInfo');
})->add('authGuard');
$app->group('/api/groups', function () {
$this->delete('/g/{slug}', 'UserFrosting\Sprinkle\Admin\Controller\GroupController:delete');
$this->get('', 'UserFrosting\Sprinkle\Admin\Controller\GroupController:getList');
$this->get('/g/{slug}', 'UserFrosting\Sprinkle\Admin\Controller\GroupController:getInfo');
$this->get('/g/{slug}/users', 'UserFrosting\Sprinkle\Admin\Controller\GroupController:getUsers');
$this->post('', 'UserFrosting\Sprinkle\Admin\Controller\GroupController:create');
$this->put('/g/{slug}', 'UserFrosting\Sprinkle\Admin\Controller\GroupController:updateInfo');
})->add('authGuard');
$app->group('/modals/groups', function () {
$this->get('/confirm-delete', 'UserFrosting\Sprinkle\Admin\Controller\GroupController:getModalConfirmDelete');
$this->get('/create', 'UserFrosting\Sprinkle\Admin\Controller\GroupController:getModalCreate');
$this->get('/edit', 'UserFrosting\Sprinkle\Admin\Controller\GroupController:getModalEdit');
})->add('authGuard');
|