mirror of
https://github.com/kiddin9/op-packages.git
synced 2026-10-30 14:25:13 +08:00
🌴 Sync 2026-07-14 04:31:14
This commit is contained in:
1 parent
e652a38f70
commit
fd29dc0037
47 files changed
+926
-789
No files matched your search
@@ -109,6 +109,7 @@ function index()
|
||||
for _, com in ipairs(coms.order) do
|
||||
entry({"admin", "services", appname, "check_" .. com}, call("com_check", com)).leaf = true
|
||||
entry({"admin", "services", appname, "update_" .. com}, call("com_update", com)).leaf = true
|
||||
entry({"admin", "services", appname, "version_" .. com}, call("com_version", com)).leaf = true
|
||||
end
|
||||
|
||||
--[[Backup]]
|
||||
@@ -881,6 +882,11 @@ function com_update(comname)
|
||||
http_write_json(json)
|
||||
end
|
||||
|
||||
function com_version(comname)
|
||||
local version = api.get_app_version(comname)
|
||||
http_write_json_ok(version)
|
||||
end
|
||||
|
||||
function read_rulelist()
|
||||
local rule_type = http.formvalue("type")
|
||||
local rule_path
|
||||
|
||||
Reference in new issue
Block a user