diff options
author | Paul Spooren <mail@aparcar.org> | 2021-08-15 18:52:18 -1000 |
---|---|---|
committer | Paul Spooren <mail@aparcar.org> | 2021-08-16 14:58:03 -1000 |
commit | a672875402a0802ddcd0e4c8c2d0ac7913dff671 (patch) | |
tree | 2a44ddc6555b4129659563365c595a5dbc82a440 /applications/luci-app-attendedsysupgrade/htdocs | |
parent | 53ff7ca676d10fa253d3ab472b9b5645996527ed (diff) |
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>
Diffstat (limited to 'applications/luci-app-attendedsysupgrade/htdocs')
-rw-r--r-- | applications/luci-app-attendedsysupgrade/htdocs/luci-static/resources/view/attendedsysupgrade/overview.js | 2 |
1 files changed, 1 insertions, 1 deletions
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()) |