immortalwrt/package/jsda/luci-app-serverchan/luasrc/controller/serverchan.lua

15 lines
324 B
Lua
Raw Normal View History

2019-07-02 18:06:49 +08:00
#-- Copyright (C) 2018 dz <dingzhong110@gmail.com>
module("luci.controller.serverchan", package.seeall)
function index()
if not nixio.fs.access("/etc/config/serverchan") then
return
end
local page
page = entry({"admin", "services", "serverchan"}, cbi("serverchan"), _("serverchan"), 60)
page.dependent = true
end