luci-app-attendedsysupgrade: use latest.json
authorPaul Spooren <mail@aparcar.org>
Mon, 16 Aug 2021 04:52:18 +0000 (18:52 -1000)
committerPaul Spooren <mail@aparcar.org>
Tue, 17 Aug 2021 00:58:03 +0000 (14:58 -1000)
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 <mail@aparcar.org>
applications/luci-app-attendedsysupgrade/htdocs/luci-static/resources/view/attendedsysupgrade/overview.js

index 5d5d4bd9ba8f01dd171f06359f35f741a682e1f7..e49252ba3a096414474fbd122f781fa6679582b6 100644 (file)
@@ -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())