aboutsummaryrefslogtreecommitdiffhomepage
path: root/main/app/sprinkles/admin/routes/activities.php
diff options
context:
space:
mode:
Diffstat (limited to 'main/app/sprinkles/admin/routes/activities.php')
-rwxr-xr-xmain/app/sprinkles/admin/routes/activities.php19
1 files changed, 19 insertions, 0 deletions
diff --git a/main/app/sprinkles/admin/routes/activities.php b/main/app/sprinkles/admin/routes/activities.php
new file mode 100755
index 0000000..b324553
--- /dev/null
+++ b/main/app/sprinkles/admin/routes/activities.php
@@ -0,0 +1,19 @@
+<?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 activity monitoring.
+ */
+$app->group('/activities', function () {
+ $this->get('', 'UserFrosting\Sprinkle\Admin\Controller\ActivityController:pageList')
+ ->setName('uri_activities');
+})->add('authGuard');
+
+$app->group('/api/activities', function () {
+ $this->get('', 'UserFrosting\Sprinkle\Admin\Controller\ActivityController:getList');
+})->add('authGuard');