summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-app-vnstat/root
diff options
context:
space:
mode:
Diffstat (limited to 'applications/luci-app-vnstat/root')
-rw-r--r--applications/luci-app-vnstat/root/usr/share/luci/menu.d/luci-app-vnstat.json28
1 files changed, 28 insertions, 0 deletions
diff --git a/applications/luci-app-vnstat/root/usr/share/luci/menu.d/luci-app-vnstat.json b/applications/luci-app-vnstat/root/usr/share/luci/menu.d/luci-app-vnstat.json
new file mode 100644
index 0000000000..5b92e239c9
--- /dev/null
+++ b/applications/luci-app-vnstat/root/usr/share/luci/menu.d/luci-app-vnstat.json
@@ -0,0 +1,28 @@
+{
+ "admin/status/vnstat": {
+ "title": "VnStat Traffic Monitor",
+ "order": 90,
+ "action": {
+ "type": "firstchild"
+ }
+ },
+
+ "admin/status/vnstat/graphs": {
+ "title": "Graphs",
+ "order": 1,
+ "action": {
+ "type": "template",
+ "path": "vnstat"
+ }
+ },
+
+ "admin/status/vnstat/config": {
+ "title": "Configuration",
+ "order": 2,
+ "action": {
+ "type": "cbi",
+ "path": "vnstat",
+ "post": { "cbi.submit": true }
+ }
+ }
+}