Added user admin role
This commit is contained in:
1 parent
aa923dbe52
commit
275de8c6fe
3 files changed
+145
-1
No files matched your search
@@ -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