summaryrefslogtreecommitdiffstats
path: root/dnsmasq-controller.lua
diff options
context:
space:
mode:
Diffstat (limited to 'dnsmasq-controller.lua')
-rw-r--r--dnsmasq-controller.lua9
1 files changed, 3 insertions, 6 deletions
diff --git a/dnsmasq-controller.lua b/dnsmasq-controller.lua
index 41e3780..5ba412b 100644
--- a/dnsmasq-controller.lua
+++ b/dnsmasq-controller.lua
@@ -1,8 +1,5 @@
module(..., package.seeall)
--- Load libraries
-require("controllerfunctions")
-
default_action = "status"
function status(self)
@@ -10,15 +7,15 @@ 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 config(self)
- return controllerfunctions.handle_form(self, self.model.getconfig, self.model.setconfig, self.clientdata, "Save", "Edit Config", "Configuration Set")
+ return self.handle_form(self, self.model.getconfig, self.model.setconfig, self.clientdata, "Save", "Edit Config", "Configuration Set")
end
function expert(self)
- return controllerfunctions.handle_form(self, self.model.getconfigfile, self.model.setconfigfile, self.clientdata, "Save", "Edit Config File", "Configuration File Set")
+ return self.handle_form(self, self.model.getconfigfile, self.model.setconfigfile, self.clientdata, "Save", "Edit Config File", "Configuration File Set")
end
function viewleases(self)