diff mbox series

[luci] luci-base: don't append object.method to the RPC url

Message ID 20200923115730.23743-1-zajec5@gmail.com
State Accepted
Headers show
Series [luci] luci-base: don't append object.method to the RPC url | expand

Commit Message

Rafał Miłecki Sept. 23, 2020, 11:57 a.m. UTC
From: Rafał Miłecki <rafal@milecki.pl>

It was a cosmetic feature that doesn't work anymore with the latest
uhttpd ubus API. Adding RESTful API resulted in treating URL part
following the /ubus/ as the new API request.
---
 modules/luci-base/htdocs/luci-static/resources/rpc.js | 3 ---
 1 file changed, 3 deletions(-)
diff mbox series

Patch

diff --git a/modules/luci-base/htdocs/luci-static/resources/rpc.js b/modules/luci-base/htdocs/luci-static/resources/rpc.js
index 7bfc91336..f37f7bb6a 100644
--- a/modules/luci-base/htdocs/luci-static/resources/rpc.js
+++ b/modules/luci-base/htdocs/luci-static/resources/rpc.js
@@ -33,9 +33,6 @@  return baseclass.extend(/** @lends LuCI.rpc.prototype */ {
 						req[i].params[2]
 					);
 		}
-		else if (req.params) {
-			q += '/%s.%s'.format(req.params[1], req.params[2]);
-		}
 
 		return request.post(rpcBaseURL + q, req, {
 			timeout: (L.env.rpctimeout || 20) * 1000,