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>
(cherry picked from commit a672875402)
This commit is contained in:
Paul Spooren 2021-08-15 18:52:18 -10:00
parent 0ac075009e
commit 9aa5afa780

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 candidates = [];
request.get(server_url + "/api/latest", {
request.get(server_url + "/json/latest.json", {
timeout: 8000
})
.then(response => response.json())