aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Module/Permcat.php
diff options
context:
space:
mode:
Diffstat (limited to 'Zotlabs/Module/Permcat.php')
-rw-r--r--Zotlabs/Module/Permcat.php25
1 files changed, 25 insertions, 0 deletions
diff --git a/Zotlabs/Module/Permcat.php b/Zotlabs/Module/Permcat.php
new file mode 100644
index 000000000..064c9cefb
--- /dev/null
+++ b/Zotlabs/Module/Permcat.php
@@ -0,0 +1,25 @@
+<?php
+
+namespace Zotlabs\Module;
+
+use \Zotlabs\Lib as Zlib;
+
+class Permcat extends \Zotlabs\Web\Controller {
+
+ private $permcats = [];
+
+ public function init() {
+ if(! local_channel())
+ return;
+
+ $permcat = new Zlib\Permcat(local_channel());
+
+ if(argc() > 1)
+ json_return_and_die($permcat->fetch(argv(1)));
+
+ json_return_and_die($permcat->listing());
+
+ }
+
+
+} \ No newline at end of file