diff options
Diffstat (limited to 'asterisk-controller.lua')
-rw-r--r-- | asterisk-controller.lua | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/asterisk-controller.lua b/asterisk-controller.lua index 25994a3..404a141 100644 --- a/asterisk-controller.lua +++ b/asterisk-controller.lua @@ -2,8 +2,6 @@ module (..., package.seeall) -require("controllerfunctions") - default_action = "status" status = function( self ) @@ -11,7 +9,7 @@ status = function( self ) end startstop = function( 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 listfiles = function( self ) @@ -19,5 +17,5 @@ listfiles = function( self ) end edit = function( self ) - return controllerfunctions.handle_form(self, function() return self.model.get_file(self.clientdata.filename) end, self.model.update_file, self.clientdata, "Save", "Edit File", "File Saved") + return self.handle_form(self, self.model.get_file, self.model.update_file, self.clientdata, "Save", "Edit File", "File Saved") end |