mirror of
https://github.com/lxsang/antd-web-apps
synced 2024-12-28 10:18:22 +01:00
30 lines
525 B
Lua
30 lines
525 B
Lua
BaseController:subclass("IndexController", {
|
|
registry = {}
|
|
})
|
|
|
|
function IndexController:index( ... )
|
|
return true
|
|
end
|
|
|
|
function IndexController:actionnotfound(...)
|
|
self.template:setView("index")
|
|
return self:index(table.unpack({...}))
|
|
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
|
|
end |