tinyproxy.lua 601 B

123456789101112131415
  1. -- Copyright 2008 Steven Barth <steven@midlink.org>
  2. -- Copyright 2008 Jo-Philipp Wich <jow@openwrt.org>
  3. -- Licensed to the public under the Apache License 2.0.
  4. module("luci.controller.tinyproxy", package.seeall)
  5. function index()
  6. if not nixio.fs.access("/etc/config/tinyproxy") then
  7. return
  8. end
  9. entry({"admin", "services", "tinyproxy"}, alias("admin", "services", "tinyproxy", "config"), _("Tinyproxy"))
  10. entry({"admin", "services", "tinyproxy", "status"}, template("tinyproxy_status"), _("Status"))
  11. entry({"admin", "services", "tinyproxy", "config"}, cbi("tinyproxy"), _("Configuration"))
  12. end