diff --git a/src/server.rs b/src/server.rs index 9bc89a4..2ec64a8 100644 --- a/src/server.rs +++ b/src/server.rs @@ -60,8 +60,9 @@ pub fn run(server_address: &str, mavlink_vehicle: &MAVLinkVehicleArcMutex) { web::get().to(endpoints::root), ) .route("/info", web::get().to(endpoints::info)) - .service(default) + // Be sure to have default as the latest endpoint, otherwise it does not work .service(v1) + .service(default) .build() }) .bind(server_address)