Skip to content

Commit

Permalink
refactor(backend): remove usage of path macro
Browse files Browse the repository at this point in the history
Our usage of it is very simple, so we might as well just do it manually
  • Loading branch information
ravenclaw900 committed Jan 18, 2022
1 parent 332537e commit 8befe46
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/backend/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,8 @@ fn main() {
"*",
));

let terminal_route = warp::path!("ws" / "term")
let terminal_route = warp::path("ws")
.and(warp::path("term"))
.and(warp::ws())
.map(|ws: warp::ws::Ws| ws.on_upgrade(terminal::term_handler));

Expand Down

0 comments on commit 8befe46

Please sign in to comment.