diff options
author | Ayushman Tripathi <ayushmantripathi7724@gmail.com> | 2023-04-25 16:55:27 +0530 |
---|---|---|
committer | Ayushman Tripathi <ayushmantripathi7724@gmail.com> | 2023-06-20 19:02:39 +0530 |
commit | 678657bebb7eadae08f69caccc4d880757fc9dd1 (patch) | |
tree | d41249d7620e085c398ebfe751eaf289ffc43d81 /applications/luci-app-uhttpd/root/usr/share | |
parent | ad3509bf3bb5dfa79af634c841d584408068fb0a (diff) |
luci-app-uhttpd: migrate to js
Signed-off-by: Ayushman Tripathi <ayushmantripathi7724@gmail.com>
luci-app-uhttpd: migrate to js spaces to tab
Signed-off-by: Ayushman Tripathi <ayushmantripathi7724@gmail.com>
luci-app-uhttpd: migrate to js
Signed-off-by: Ayushman Tripathi <ayushmantripathi7724@gmail.com>
luci-app-uhttpd: migrate to JavaScript-based implementation tab spaces
Signed-off-by: Ayushman Tripathi <ayushmantripathi7724@gmail.com>
luci-app-uhttpd: migrate to js
luci-app-uhttpd: migrate to JavaScript-based implementation formatting
Signed-off-by: Ayushman Tripathi <ayushmantripathi7724@gmail.com>
luci-app-uhttpd: migrate to js
luci-app-uhttpd: migrate to JavaScript-based implementation fix formatting bug
luci-app-uhttpd: migrate to js
luci-app-uhttpd: migrate to JavaScript-based implementation fix upload bug
luci-app-uhttpd: migrate to js
luci-app-uhttpd: migrate to js update dependency
luci-app-uhttpd: migrate to js
Diffstat (limited to 'applications/luci-app-uhttpd/root/usr/share')
-rw-r--r-- | applications/luci-app-uhttpd/root/usr/share/luci/menu.d/luci-app-uhttpd.json | 9 | ||||
-rw-r--r-- | applications/luci-app-uhttpd/root/usr/share/rpcd/acl.d/luci-app-uhttpd.json | 11 |
2 files changed, 13 insertions, 7 deletions
diff --git a/applications/luci-app-uhttpd/root/usr/share/luci/menu.d/luci-app-uhttpd.json b/applications/luci-app-uhttpd/root/usr/share/luci/menu.d/luci-app-uhttpd.json index db3be65088..03a97cb2e7 100644 --- a/applications/luci-app-uhttpd/root/usr/share/luci/menu.d/luci-app-uhttpd.json +++ b/applications/luci-app-uhttpd/root/usr/share/luci/menu.d/luci-app-uhttpd.json @@ -1,14 +1,13 @@ { - "admin/services/uhttpd/*": { + "admin/services/uhttpd": { "title": "uHTTPd", "action": { - "type": "cbi", - "path": "uhttpd/uhttpd", - "post": { "cbi.submit": true } + "type": "view", + "path": "uhttpd" }, "depends": { "acl": [ "luci-app-uhttpd" ], "uci": { "uhttpd": true } } } -} +}
\ No newline at end of file diff --git a/applications/luci-app-uhttpd/root/usr/share/rpcd/acl.d/luci-app-uhttpd.json b/applications/luci-app-uhttpd/root/usr/share/rpcd/acl.d/luci-app-uhttpd.json index d3b93523cc..ab946db77a 100644 --- a/applications/luci-app-uhttpd/root/usr/share/rpcd/acl.d/luci-app-uhttpd.json +++ b/applications/luci-app-uhttpd/root/usr/share/rpcd/acl.d/luci-app-uhttpd.json @@ -2,10 +2,17 @@ "luci-app-uhttpd": { "description": "Grant UCI access for luci-app-uhttpd", "read": { - "uci": [ "uhttpd" ] + "uci": [ "uhttpd" ], + "file": { + "/*": ["read"] + } }, "write": { - "uci": [ "uhttpd" ] + "uci": [ "uhttpd" ], + "file": { + "/*": ["write"], + "/etc/init.d/uhttpd restart": ["exec"] + } } } } |