mirror of
https://github.com/antos-rde/antos-backend.git
synced 2024-11-20 04:18:23 +01:00
32 lines
670 B
Lua
32 lines
670 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 = "2.0.0-a",
|
|
documents = {
|
|
vfs = HTTP_ROOT.."/VFS",
|
|
user = HTTP_ROOT.."/user",
|
|
system = HTTP_ROOT.."/system"
|
|
}
|
|
}
|
|
result(api)
|
|
return false
|
|
end |