diff options
Diffstat (limited to 'acfupdate-controller.lua')
-rw-r--r-- | acfupdate-controller.lua | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/acfupdate-controller.lua b/acfupdate-controller.lua index df8fdf5..4e88f7a 100644 --- a/acfupdate-controller.lua +++ b/acfupdate-controller.lua @@ -7,30 +7,30 @@ default_action = "read" function read (self ) return ({projects = self.model:get(), - url = ENV["SCRIPT_NAME"] .. self.conf.prefix .. self.conf.controller} ) + url = self.conf.script .. self.conf.prefix .. self.conf.controller} ) end function update (self ) return ({projects = self.model:get(), updates = self.model:update(), - url = ENV["SCRIPT_NAME"] .. self.conf.prefix .. self.conf.controller} ) + url = self.conf.script .. self.conf.prefix .. self.conf.controller} ) end function diff (self ) return ({projects = self.model:get(), updates = self.model:diffs(), - url = ENV["SCRIPT_NAME"] .. self.conf.prefix .. self.conf.controller} ) + url = self.conf.script .. self.conf.prefix .. self.conf.controller} ) end function status (self ) return ({projects = self.model:get(), updates = self.model:status(), - url = ENV["SCRIPT_NAME"] .. self.conf.prefix .. self.conf.controller} ) + url = self.conf.script .. self.conf.prefix .. self.conf.controller} ) end function log (self ) return ({projects = self.model:get(), updates = self.model:log(), - url = ENV["SCRIPT_NAME"] .. self.conf.prefix .. self.conf.controller} ) + url = self.conf.script .. self.conf.prefix .. self.conf.controller} ) end |