Added user admin role

This commit is contained in:
2023-10-06 09:54:45 +01:00
parent aa923dbe52
commit 275de8c6fe
3 changed files with 145 additions and 1 deletions

17
routes/roles.php Normal file
View 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());