mirror of
https://github.com/lxsang/antd-web-apps
synced 2024-12-27 09:58:20 +01:00
33 lines
707 B
Lua
33 lines
707 B
Lua
BaseController:subclass(
|
|
"IndexController",
|
|
{
|
|
registry = {},
|
|
models = {}
|
|
}
|
|
)
|
|
|
|
function IndexController:actionnotfound(...)
|
|
return self:index(table.unpack({...}))
|
|
end
|
|
|
|
function IndexController:index(...)
|
|
html()
|
|
std.f(WWW_ROOT..DIR_SEP.."index.html")
|
|
end
|
|
|
|
function IndexController:doc(...)
|
|
local api = {
|
|
author = "Xuan Sang LE",
|
|
email = "xsang.le@gmail.com",
|
|
api_name = "AntOS API",
|
|
version = "0.2.4 a",
|
|
documents = {
|
|
vfs = HTTP_ROOT.."/VFS",
|
|
vdb = HTTP_ROOT.."/VDB",
|
|
user = HTTP_ROOT.."/user",
|
|
system = HTTP_ROOT.."/system"
|
|
}
|
|
}
|
|
result(api)
|
|
return false
|
|
end |