diff options
Diffstat (limited to 'modules/luci-base')
-rw-r--r-- | modules/luci-base/root/usr/share/rpcd/ucode/luci | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/modules/luci-base/root/usr/share/rpcd/ucode/luci b/modules/luci-base/root/usr/share/rpcd/ucode/luci index e237979352..a30e276b80 100644 --- a/modules/luci-base/root/usr/share/rpcd/ucode/luci +++ b/modules/luci-base/root/usr/share/rpcd/ucode/luci @@ -7,6 +7,7 @@ import { stdin, access, dirname, basename, open, popen, glob, lsdir, readfile, r import { cursor } from 'uci'; import { init_list, init_index, init_enabled, init_action, conntrack_list, process_list } from 'luci.sys'; +import { revision, branch } from 'luci.version'; import { statvfs } from 'luci.core'; import timezones from 'luci.zoneinfo'; @@ -17,6 +18,12 @@ function shellquote(s) { } const methods = { + getVersion: { + call: function(request) { + return { revision, branch }; + } + }, + getInitList: { args: { name: 'name' }, call: function(request) { |