summaryrefslogtreecommitdiffstats
path: root/modules-controller.lua
diff options
context:
space:
mode:
Diffstat (limited to 'modules-controller.lua')
-rw-r--r--modules-controller.lua6
1 files changed, 5 insertions, 1 deletions
diff --git a/modules-controller.lua b/modules-controller.lua
index f1da11c..dc7735c 100644
--- a/modules-controller.lua
+++ b/modules-controller.lua
@@ -3,7 +3,11 @@ require("controllerfunctions")
module (..., package.seeall)
-default_action = "edit"
+default_action = "status"
+
+status = function(self)
+ return self.model.read_modules()
+end
edit = function(self)
return controllerfunctions.handle_form(self, self.model.read_file, self.model.write_file, self.clientdata, "Save", "Edit Modules file", "File saved")