aboutsummaryrefslogtreecommitdiffhomepage
path: root/main/app/sprinkles/admin/routes/permissions.php
diff options
context:
space:
mode:
Diffstat (limited to 'main/app/sprinkles/admin/routes/permissions.php')
-rwxr-xr-xmain/app/sprinkles/admin/routes/permissions.php25
1 files changed, 25 insertions, 0 deletions
diff --git a/main/app/sprinkles/admin/routes/permissions.php b/main/app/sprinkles/admin/routes/permissions.php
new file mode 100755
index 0000000..4df04c8
--- /dev/null
+++ b/main/app/sprinkles/admin/routes/permissions.php
@@ -0,0 +1,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');