1 -- Copyright 2018 Rosy Song <rosysong@rosinson.com>
2 -- Licensed to the public under the Apache License 2.0.
4 module("luci.controller.rosy-file-server.rosy-file-server", package.seeall)
7 if not nixio.fs.access("/etc/config/rosyfs") then
12 if not root.target then
13 root.target = alias("httpfs")
19 page.target = alias("httpfs")
24 page.title = _("Rosy File Server")
25 page.target = alias("httpfs", "rosy-file-server")
28 page.setgroup = "root"
31 entry({"httpfs", "rosy-file-server"},
32 form("rosy-file-server/rosy-file-server"), _("Rosy File Server"), 10)
34 entry({"admin", "services", "rosyfs"},
35 cbi("rosy-file-server/rosyfs"), _("Rosy File Server"), 61)