luci-base: convert menu nodes to JSON
[oweals/luci.git] / modules / luci-base / root / usr / share / luci / menu.d / luci-base.json
1 {
2         "admin": {
3                 "title": "Administration",
4                 "order": 10,
5                 "action": {
6                         "type": "firstchild",
7                         "recurse": true
8                 },
9                 "auth": {
10                         "methods": [ "cookie:sysauth" ],
11                         "login": true
12                 }
13         },
14
15         "admin/status": {
16                 "title": "Status",
17                 "order": 10,
18                 "action": {
19                         "type": "firstchild",
20                         "preferred": "overview",
21                         "recurse": true
22                 }
23         },
24
25         "admin/system": {
26                 "title": "System",
27                 "order": 20,
28                 "action": {
29                         "type": "firstchild",
30                         "preferred": "system",
31                         "recurse": true
32                 }
33         },
34
35         "admin/vpn": {
36                 "title": "VPN",
37                 "order": 30,
38                 "action": {
39                         "type": "firstchild",
40                         "recurse": true
41                 }
42         },
43
44         "admin/services": {
45                 "title": "Services",
46                 "order": 40,
47                 "action": {
48                         "type": "firstchild",
49                         "recurse": true
50                 }
51         },
52
53         "admin/network": {
54                 "title": "Network",
55                 "order": 50,
56                 "action": {
57                         "type": "firstchild",
58                         "recurse": true
59                 }
60         },
61
62         "admin/translations/*": {
63                 "action": {
64                         "type": "call",
65                         "module": "luci.controller.admin.index",
66                         "function": "action_translations"
67                 },
68                 "auth": {
69                         "methods": [ "cookie:sysauth" ]
70                 }
71         },
72
73         "admin/ubus/*": {
74                 "action": {
75                         "type": "call",
76                         "module": "luci.controller.admin.index",
77                         "function": "action_ubus"
78                 },
79                 "auth": {}
80         },
81
82         "admin/logout": {
83                 "title": "Logout",
84                 "order": 999,
85                 "action": {
86                         "type": "call",
87                         "module": "luci.controller.admin.index",
88                         "function": "action_logout"
89                 }
90         },
91
92         "admin/uci": {
93                 "action": {
94                         "type": "firstchild"
95                 }
96         },
97
98         "admin/uci/revert": {
99                 "action": {
100                         "type": "call",
101                         "module": "luci.controller.admin.uci",
102                         "function": "action_revert",
103                         "post": true
104                 }
105         },
106
107         "admin/uci/apply_rollback": {
108                 "cors": true,
109                 "action": {
110                         "type": "call",
111                         "module": "luci.controller.admin.uci",
112                         "function": "action_apply_rollback",
113                         "post": true
114                 },
115                 "auth": {
116                         "methods": [ "cookie:sysauth" ]
117                 }
118         },
119
120         "admin/uci/apply_unchecked": {
121                 "cors": true,
122                 "action": {
123                         "type": "call",
124                         "module": "luci.controller.admin.uci",
125                         "function": "action_apply_unchecked",
126                         "post": true
127                 },
128                 "auth": {
129                         "methods": [ "cookie:sysauth" ]
130                 }
131         },
132
133         "admin/uci/confirm": {
134                 "cors": true,
135                 "action": {
136                         "type": "call",
137                         "module": "luci.controller.admin.uci",
138                         "function": "action_confirm"
139                 },
140                 "auth": {}
141         }
142 }