antos-backend/controllers/IndexController.lua
DanyLE 54a0a130b2
All checks were successful
gitea-sync/antos-backend/pipeline/head This commit looks good
remove VDB support, use new DB filtering syntax
2023-04-03 17:01:29 +02:00

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