summaryrefslogtreecommitdiffstats
path: root/hostname-controller.lua
blob: 8a6ead87928dee5a201a515e699823d261aebe1c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
-- the hostname controller

module (..., package.seeall)

-- Public methods
-- <prefix>/hostname/get

default_action = "read"

read = function (self )
	return ({hostname = self.model:get()} )
end

update = function (self)
	return ( {hostname = self.model:set(cfe({value=self.clientdata.hostname}))})
end

--[[
delete = function (self)
	return ({hostname = self.model:set(cfe({value=""}))})
end

create = update
--]]