summaryrefslogtreecommitdiffstats
path: root/fetchcrl-controller.lua
blob: 0b957babbc4e6aa59d1d6d11ee088d2714e8d3b1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
-- the fetch-crl controller

module (..., package.seeall)

require("controllerfunctions")

default_action = "status"

status = function( self )
	return self.model.get_status()
end

startstop = function( self )
	return controllerfunctions.handle_startstop(self, self.model.startstop_service, self.model.get_status, self.clientdata)
end

expert = function( self )
	return controllerfunctions.handle_form(self, self.model.get_configfile, self.model.update_configfile, self.clientdata, "Save", "Edit Configuration", "Configuration Saved")
end