mirror of
https://github.com/LibreQoE/LibreQoS.git
synced 2025-02-25 18:55:32 -06:00
Remove final warning from lqosd - lqosd now builds warning-free.
This commit is contained in:
parent
1207a7c258
commit
ff492535a0
@ -16,7 +16,7 @@ var subscribed = false;
|
||||
|
||||
// This runs first and builds the initial structure on the page
|
||||
function getInitialTree() {
|
||||
$.get("/local-api/networkTree/0", (data) => {
|
||||
$.get("/local-api/networkTree", (data) => {
|
||||
//console.log(data);
|
||||
tree = data;
|
||||
|
||||
|
@ -24,7 +24,7 @@ pub fn local_api() -> Router {
|
||||
.route("/versionCheck", get(version_check::version_check))
|
||||
.route("/deviceCount", get(device_counts::count_users))
|
||||
.route("/devicesAll", get(shaped_device_api::all_shaped_devices))
|
||||
.route("/networkTree/:parent", get(network_tree::get_network_tree))
|
||||
.route("/networkTree", get(network_tree::get_network_tree))
|
||||
.route("/sanity", get(support::run_sanity_check))
|
||||
.route("/gatherSupport", post(support::gather_support_data))
|
||||
.route("/submitSupport", post(support::submit_support_data))
|
||||
|
@ -1,11 +1,8 @@
|
||||
use axum::extract::Path;
|
||||
use axum::Json;
|
||||
use lqos_config::NetworkJsonTransport;
|
||||
use crate::shaped_devices_tracker::NETWORK_JSON;
|
||||
|
||||
pub async fn get_network_tree(
|
||||
Path(parent): Path<usize>
|
||||
) -> Json<Vec<(usize, NetworkJsonTransport)>> {
|
||||
pub async fn get_network_tree() -> Json<Vec<(usize, NetworkJsonTransport)>> {
|
||||
let net_json = NETWORK_JSON.read().unwrap();
|
||||
let result: Vec<(usize, NetworkJsonTransport)> = net_json
|
||||
.get_nodes_when_ready()
|
||||
|
Loading…
Reference in New Issue
Block a user