We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6b0e0ae commit b9df214Copy full SHA for b9df214
crates/sshx-server/src/web.rs
@@ -2,7 +2,7 @@
2
3
use std::sync::Arc;
4
5
-use axum::routing::{get, get_service};
+use axum::routing::{any, get_service};
6
use axum::Router;
7
use tower_http::services::{ServeDir, ServeFile};
8
@@ -30,5 +30,5 @@ pub fn app() -> Router<Arc<ServerState>> {
30
31
/// Routes for the backend web API server.
32
fn backend() -> Router<Arc<ServerState>> {
33
- Router::new().route("/s/{name}", get(socket::get_session_ws))
+ Router::new().route("/s/{name}", any(socket::get_session_ws))
34
}
0 commit comments