luci-base: amend rpc to handle objects in param
authorPaul Donald <newtwen+github@gmail.com>
Thu, 8 Jan 2026 17:12:40 +0000 (18:12 +0100)
committerPaul Donald <newtwen+github@gmail.com>
Fri, 23 Jan 2026 03:27:51 +0000 (04:27 +0100)
commitfddc70391f7ea2b36713ca67b37111e2746f6bd9
tree78c027c0a4cee4d43405f686b5b20ca0e7e49086
parent05f90a20445b422b127fdb348d154d365c8696bd
luci-base: amend rpc to handle objects in param

This allows more complex and nested call constructions. Example:

const container_create = rpc.declare({
object: 'frob',
method: 'glob',
params: { foo: { }, bar: { } },
});

Signed-off-by: Paul Donald <newtwen+github@gmail.com>
modules/luci-base/htdocs/luci-static/resources/rpc.js