mirror of
https://github.com/openwrt/luci.git
synced 2026-05-31 10:31:55 +08:00
treewide: declare rpc calls with const
Signed-off-by: Sergey Ponomarev <stokito@gmail.com>
This commit is contained in:
committed by
Paul Donald
parent
2ffaab3fca
commit
e1d8f0e6f9
+6
-6
@@ -43,37 +43,37 @@ var pkg = {
|
||||
},
|
||||
};
|
||||
|
||||
var getInitList = rpc.declare({
|
||||
const getInitList = rpc.declare({
|
||||
object: "luci." + pkg.Name,
|
||||
method: "getInitList",
|
||||
params: ["name"],
|
||||
});
|
||||
|
||||
var getInitStatus = rpc.declare({
|
||||
const getInitStatus = rpc.declare({
|
||||
object: "luci." + pkg.Name,
|
||||
method: "getInitStatus",
|
||||
params: ["name"],
|
||||
});
|
||||
|
||||
var getPlatformSupport = rpc.declare({
|
||||
const getPlatformSupport = rpc.declare({
|
||||
object: "luci." + pkg.Name,
|
||||
method: "getPlatformSupport",
|
||||
params: ["name"],
|
||||
});
|
||||
|
||||
var getProviders = rpc.declare({
|
||||
const getProviders = rpc.declare({
|
||||
object: "luci." + pkg.Name,
|
||||
method: "getProviders",
|
||||
params: ["name"],
|
||||
});
|
||||
|
||||
var getRuntime = rpc.declare({
|
||||
const getRuntime = rpc.declare({
|
||||
object: "luci." + pkg.Name,
|
||||
method: "getRuntime",
|
||||
params: ["name"],
|
||||
});
|
||||
|
||||
var _setInitAction = rpc.declare({
|
||||
const _setInitAction = rpc.declare({
|
||||
object: "luci." + pkg.Name,
|
||||
method: "setInitAction",
|
||||
params: ["name", "action"],
|
||||
|
||||
Reference in New Issue
Block a user