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

Function plugin_auth_routes

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

Source from the content-addressed store, hash-verified

4544}
4545
4546fn plugin_auth_routes() -> Router<Arc<ServerState>> {
4547 Router::new()
4548 .route("/auth", get(list_plugin_auth))
4549 .route("/{name}/auth/authorize", post(plugin_auth_authorize))
4550 .route("/{name}/auth/callback", post(plugin_auth_callback))
4551 .route("/{name}/auth/load", post(plugin_auth_load))
4552 .route("/{name}/auth/fetch", post(plugin_auth_fetch))
4553}
4554
4555#[derive(Debug, Serialize)]
4556struct PluginAuthInfo {

Callers 1

routerFunction · 0.85

Calls 2

newFunction · 0.85
getFunction · 0.50

Tested by

no test coverage detected