2018-08-28 14:49:03 +02:00
|
|
|
BaseController:subclass("IndexController", {
|
|
|
|
registry = {}
|
|
|
|
})
|
|
|
|
|
|
|
|
function IndexController:index( ... )
|
|
|
|
return true
|
|
|
|
end
|
|
|
|
|
|
|
|
function IndexController:actionnotfound(...)
|
|
|
|
self.template:setView("index")
|
|
|
|
return self:index(table.unpack({...}))
|
2018-09-11 10:35:02 +02:00
|
|
|
end
|
|
|
|
|
|
|
|
function IndexController:json(...)
|
|
|
|
std.json()
|
|
|
|
echo( JSON.encode(REQUEST))
|
|
|
|
return false
|
|
|
|
end
|
|
|
|
|
|
|
|
function IndexController:get(...)
|
|
|
|
return true
|
|
|
|
end
|
|
|
|
|
|
|
|
function IndexController:form(...)
|
|
|
|
return true
|
|
|
|
end
|
|
|
|
|
|
|
|
function IndexController:upload(...)
|
|
|
|
return true
|
2018-08-28 14:49:03 +02:00
|
|
|
end
|