MCPcopy Create free account
hub / github.com/NVIDIA/OpenShell / service_http_router

Function service_http_router

crates/openshell-server/src/http.rs:194–198  ·  view source on GitHub ↗

Create the plaintext loopback-only router for browser service endpoints. This router intentionally exposes only sandbox service routing. It does not include gRPC, auth, health, metrics, or WebSocket tunnel routes.

(state: Arc<crate::ServerState>)

Source from the content-addressed store, hash-verified

192/// This router intentionally exposes only sandbox service routing. It does not
193/// include gRPC, auth, health, metrics, or WebSocket tunnel routes.
194pub fn service_http_router(state: Arc<crate::ServerState>) -> Router {
195 Router::new()
196 .fallback(sandbox_service_routing_only)
197 .with_state(state)
198}
199
200async fn sandbox_service_routing_first(
201 State(state): State<Arc<crate::ServerState>>,

Callers

nothing calls this directly

Calls 1

with_stateMethod · 0.80

Tested by

no test coverage detected