summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-app-vnstat/luasrc/controller
diff options
context:
space:
mode:
Diffstat (limited to 'applications/luci-app-vnstat/luasrc/controller')
-rw-r--r--applications/luci-app-vnstat/luasrc/controller/vnstat.lua11
1 files changed, 11 insertions, 0 deletions
diff --git a/applications/luci-app-vnstat/luasrc/controller/vnstat.lua b/applications/luci-app-vnstat/luasrc/controller/vnstat.lua
new file mode 100644
index 000000000..3871fa254
--- /dev/null
+++ b/applications/luci-app-vnstat/luasrc/controller/vnstat.lua
@@ -0,0 +1,11 @@
+module("luci.controller.vnstat", package.seeall)
+
+function index()
+ entry({"admin", "status", "vnstat"}, alias("admin", "status", "vnstat", "graphs"), _("VnStat Traffic Monitor"), 90)
+ entry({"admin", "status", "vnstat", "graphs"}, template("vnstat"), _("Graphs"), 1)
+ entry({"admin", "status", "vnstat", "config"}, cbi("vnstat"), _("Configuration"), 2)
+
+ entry({"mini", "network", "vnstat"}, alias("mini", "network", "vnstat", "graphs"), _("VnStat Traffic Monitor"), 90)
+ entry({"mini", "network", "vnstat", "graphs"}, template("vnstat"), _("Graphs"), 1)
+ entry({"mini", "network", "vnstat", "config"}, cbi("vnstat"), _("Configuration"), 2)
+end