summaryrefslogtreecommitdiffstats
path: root/logfiles-controller.lua
diff options
context:
space:
mode:
Diffstat (limited to 'logfiles-controller.lua')
-rw-r--r--logfiles-controller.lua4
1 files changed, 4 insertions, 0 deletions
diff --git a/logfiles-controller.lua b/logfiles-controller.lua
index b35ac3b..3ae668e 100644
--- a/logfiles-controller.lua
+++ b/logfiles-controller.lua
@@ -31,4 +31,8 @@ delete = function (self)
return ({deletedfile = self.model:delete(filetodelete)} )
end
+view = function (self)
+ local filetoview = self.clientdata.name or ""
+ return ({logfile = self.model:view(filetoview)} )
+end
--create = update