summaryrefslogtreecommitdiffstats
path: root/pingu-controller.lua
diff options
context:
space:
mode:
Diffstat (limited to 'pingu-controller.lua')
-rw-r--r--pingu-controller.lua7
1 files changed, 2 insertions, 5 deletions
diff --git a/pingu-controller.lua b/pingu-controller.lua
index b088d04..f70e7ac 100644
--- a/pingu-controller.lua
+++ b/pingu-controller.lua
@@ -1,8 +1,5 @@
module(..., package.seeall)
--- Load libraries
-require("controllerfunctions")
-
default_action = "status"
function status(self)
@@ -10,9 +7,9 @@ function status(self)
end
function startstop(self)
- return controllerfunctions.handle_startstop(self, self.model.startstop_service, self.clientdata)
+ return self.handle_form(self, self.model.get_startstop, self.model.startstop_service, self.clientdata)
end
function expert(self)
- return controllerfunctions.handle_form(self, self.model.get_filedetails, self.model.update_filedetails, self.clientdata, "Save", "Edit Pingu Config", "Configuration Set")
+ return self.handle_form(self, self.model.get_filedetails, self.model.update_filedetails, self.clientdata, "Save", "Edit Pingu Config", "Configuration Set")
end