Skip to content

Commit

Permalink
server: Fix endpoint not working
Browse files Browse the repository at this point in the history
Signed-off-by: Patrick José Pereira <[email protected]>
  • Loading branch information
patrickelectric committed Dec 1, 2023
1 parent 999348a commit 07a287c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 07a287c

Please sign in to comment.