summaryrefslogtreecommitdiffstats
path: root/modules-controller.lua
blob: f1da11c097d6cac719700110525fb1fd485bbf1a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
-- the interfaces  controller
require("controllerfunctions")

module (..., package.seeall)

default_action = "edit"

edit = function(self)
	return controllerfunctions.handle_form(self, self.model.read_file, self.model.write_file, self.clientdata, "Save", "Edit Modules file", "File saved")
end

reload = function(self)
	return self:redirect_to_referrer(self.model.reloadmodules())
end