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 <mail@aparcar.org>
This commit is contained in:
Paul Spooren 2021-08-15 18:52:18 -10:00
parent 53ff7ca676
commit a672875402

View 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 advanced_mode = uci.get_first('attendedsysupgrade', 'client', 'advanced_mode') || 0;
var candidates = []; var candidates = [];
request.get(server_url + "/api/latest", { request.get(server_url + "/json/latest.json", {
timeout: 8000 timeout: 8000
}) })
.then(response => response.json()) .then(response => response.json())