Create the HTTP router served on the multiplexed gateway port.
(state: Arc<crate::ServerState>)
| 179 | |
| 180 | /// Create the HTTP router served on the multiplexed gateway port. |
| 181 | pub fn http_router(state: Arc<crate::ServerState>) -> Router { |
| 182 | crate::ws_tunnel::router(state.clone()) |
| 183 | .merge(crate::auth::router(state.clone())) |
| 184 | .layer(middleware::from_fn_with_state( |
| 185 | state, |
| 186 | sandbox_service_routing_first, |
| 187 | )) |
| 188 | } |
| 189 | |
| 190 | /// Create the plaintext loopback-only router for browser service endpoints. |
| 191 | /// |
no test coverage detected