op-packages/luci-app-ngrokc/luasrc/controller/ngrokc.lua
github-actions[bot] 32600acc60 🌴 Sync 2026-03-05 23:51:42
2026-03-05 23:51:42 +08:00

25 lines
713 B
Lua

--[[
LuCI - Lua Configuration Interface - aria2 support
Copyright 2014 nanpuyue <nanpuyue@gmail.com>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
]]--
module("luci.controller.ngrokc", package.seeall)
function index()
if not nixio.fs.access("/etc/config/ngrokc") then
return
end
local page = entry({"admin", "services", "ngrokc"}, cbi("ngrokc/overview"), _("Ngrok Settings"))
page.dependent = true
page.acl_depends = { "luci-app-ngrokc" }
entry({"admin", "services", "ngrokc", "detail"}, cbi("ngrokc/detail"), nil ).leaf = true
end