Added user admin role
This commit is contained in:
17
routes/roles.php
Normal file
17
routes/roles.php
Normal file
@@ -0,0 +1,17 @@
|
||||
<?php
|
||||
|
||||
/*
|
||||
* AVSDev UF Tweaks (https://avsdev.uk)
|
||||
*
|
||||
* @link https://git.avsdev.uk/avsdev/sprinkle-uf-tweaks
|
||||
* @license https://git.avsdev.uk/avsdev/sprinkle-uf-tweaks/blob/master/LICENSE.md (LGPL-3.0 License)
|
||||
*/
|
||||
|
||||
use UserFrosting\Sprinkle\Core\Util\NoCache;
|
||||
|
||||
/*
|
||||
* Routes for administrative role management.
|
||||
*/
|
||||
$app->group('/api/roles', function () {
|
||||
$this->get('/', 'UserFrosting\Sprinkle\UFTweaks\Controller\RoleController:getList');
|
||||
})->add('authGuard')->add(new NoCache());
|
||||
Reference in New Issue
Block a user