MCPcopy Create free account
hub / github.com/ChrisFeldmeier/OpenCodeRust / pty_routes

Function pty_routes

crates/opencode-server/src/routes.rs:3357–3362  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

3355}
3356
3357fn pty_routes() -> Router<Arc<ServerState>> {
3358 Router::new()
3359 .route("/", get(list_pty).post(create_pty))
3360 .route("/{id}", get(get_pty).put(update_pty).delete(delete_pty))
3361 .route("/{id}/connect", get(pty_connect))
3362}
3363
3364#[derive(Debug, Serialize)]
3365pub struct PtyInfo {

Callers 1

routerFunction · 0.85

Calls 3

newFunction · 0.85
getFunction · 0.50
deleteMethod · 0.45

Tested by

no test coverage detected