summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-vnstat/luasrc/controller/vnstat.lua
blob: 3871fa254cf97d707dbec61ba70bc9c38a99b55b (plain)
1
2
3
4
5
6
7
8
9
10
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