From 1e65672ab21c6f5db15f718151cd3a39140a4f5d Mon Sep 17 00:00:00 2001 From: Paul Spooren Date: Sun, 15 Aug 2021 18:52:18 -1000 Subject: [PATCH] luci-app-attendedsysupgrade: use latest.json The content is the same response as for `/api/latest.json` but statically hosted by a webserver rather than Python generated. Signed-off-by: Paul Spooren (cherry picked from commit a672875402a0802ddcd0e4c8c2d0ac7913dff671) --- .../luci-static/resources/view/attendedsysupgrade/overview.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/applications/luci-app-attendedsysupgrade/htdocs/luci-static/resources/view/attendedsysupgrade/overview.js b/applications/luci-app-attendedsysupgrade/htdocs/luci-static/resources/view/attendedsysupgrade/overview.js index 5d5d4bd9ba..e49252ba3a 100644 --- a/applications/luci-app-attendedsysupgrade/htdocs/luci-static/resources/view/attendedsysupgrade/overview.js +++ b/applications/luci-app-attendedsysupgrade/htdocs/luci-static/resources/view/attendedsysupgrade/overview.js @@ -226,7 +226,7 @@ function check_sysupgrade(server_url, current_version, target, board_name, packa var advanced_mode = uci.get_first('attendedsysupgrade', 'client', 'advanced_mode') || 0; var candidates = []; - request.get(server_url + "/api/latest", { + request.get(server_url + "/json/latest.json", { timeout: 8000 }) .then(response => response.json()) -- 2.30.2