From: Paul Spooren Date: Mon, 16 Aug 2021 04:52:18 +0000 (-1000) Subject: luci-app-attendedsysupgrade: use latest.json X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=1e65672ab21c6f5db15f718151cd3a39140a4f5d;p=project%2Fluci.git 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) --- 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())