Skip to content

Commit

Permalink
braid-run: fix axum routing
Browse files Browse the repository at this point in the history
Another fix for update to axum 0.8 in
c4bb05f
  • Loading branch information
astraw committed Jan 27, 2025
1 parent ccd7392 commit 583172e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions braid/braid-run/src/mainbrain.rs
Original file line number Diff line number Diff line change
Expand Up @@ -323,16 +323,16 @@ async fn launch_braid_http_backend(
let router = axum::Router::new()
.route("/braid-events", get(events_handler))
.route(
"/remote-camera-info/:encoded_cam_name",
"/remote-camera-info/{encoded_cam_name}",
get(remote_camera_info_handler),
)
// .route("/cam-proxy/:encoded_cam_name", get(slash_redirect_handler))
.route(
"/cam-proxy/:encoded_cam_name/",
"/cam-proxy/{encoded_cam_name}/",
axum::routing::method_routing::any(cam_proxy_handler_root),
)
.route(
"/cam-proxy/:encoded_cam_name/*path",
"/cam-proxy/{encoded_cam_name}/{*path}",
axum::routing::method_routing::any(cam_proxy_handler),
)
.route(
Expand Down

0 comments on commit 583172e

Please sign in to comment.