From 625abbfdbe94dada023ebd8ea69778173d1a7351 Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Wed, 5 Feb 2020 16:51:19 +0100 Subject: treewide: convert simple Lua controllers to declarative JSON Signed-off-by: Jo-Philipp Wich --- .../luci/menu.d/luci-app-rosy-file-server.json | 34 ++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 applications/luci-app-rosy-file-server/root/usr/share/luci/menu.d/luci-app-rosy-file-server.json (limited to 'applications/luci-app-rosy-file-server/root/usr') diff --git a/applications/luci-app-rosy-file-server/root/usr/share/luci/menu.d/luci-app-rosy-file-server.json b/applications/luci-app-rosy-file-server/root/usr/share/luci/menu.d/luci-app-rosy-file-server.json new file mode 100644 index 0000000000..03e7fd0f4a --- /dev/null +++ b/applications/luci-app-rosy-file-server/root/usr/share/luci/menu.d/luci-app-rosy-file-server.json @@ -0,0 +1,34 @@ +{ + "httpfs": { + "title": "Rosy File Server", + "order": 5, + "setuser": "root", + "setgroup": "root", + "action": { + "type": "firstchild" + }, + "depends": { + "uci": { "rosyfs": true } + } + }, + + "httpfs/rosy-file-server": { + "title": "Rosy File Server", + "order": 1, + "action": { + "type": "form", + "path": "rosy-file-server/rosy-file-server", + "post": { "cbi.submit": true } + } + }, + + "admin/services/rosyfs": { + "title": "Rosy File Server", + "order": 61, + "action": { + "type": "cbi", + "path": "rosy-file-server/rosyfs", + "post": { "cbi.submit": true } + } + } +} -- cgit v1.2.3