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 ef66cda commit cda8e39Copy full SHA for cda8e39
src/main.rs
@@ -84,11 +84,11 @@ async fn main() -> anyhow::Result<()> {
84
let app = Router::new()
85
// Health check endpoint
86
.route("/health", get(health_check))
87
- // WebSocket proxy: /ws/:session_id
88
- .route("/ws/:session_id", get(websocket_handler))
+ // WebSocket proxy: /ws/{session_id}
+ .route("/ws/{session_id}", get(websocket_handler))
89
.with_state(ws_state)
90
- // HTTP/HTTPS proxy: /:session_id/*path
91
- .route("/:session_id/*path", any(http_proxy_handler))
+ // HTTP/HTTPS proxy: /{session_id}/*path
+ .route("/{session_id}/*path", any(http_proxy_handler))
92
.with_state(http_state)
93
// Add request tracing
94
.layer(TraceLayer::new_for_http());
0 commit comments