summaryrefslogtreecommitdiffstats
path: root/dansguardian-controller.lua
diff options
context:
space:
mode:
Diffstat (limited to 'dansguardian-controller.lua')
-rw-r--r--dansguardian-controller.lua16
1 files changed, 16 insertions, 0 deletions
diff --git a/dansguardian-controller.lua b/dansguardian-controller.lua
index 3259f8c..73813e1 100644
--- a/dansguardian-controller.lua
+++ b/dansguardian-controller.lua
@@ -154,3 +154,19 @@ edit = function( self )
return ( cfe ({ option = option, service = service }) )
end
+category = function( self )
+
+ local option = { script = ENV["SCRIPT_NAME"],
+ prefix = self.conf.prefix,
+ controller = self.conf.controller,
+ action = self.conf.action,
+ extra = ""
+ }
+
+ local service = { message="", status="", config="" }
+
+ service.config = self.model.get_categories()
+
+ return ( cfe ({ option = option, service = service }) )
+end
+