MCPcopy Create free account
hub / github.com/YougLin-dev/amp-server / router

Function router

api/src/telemetry/mod.rs:11–14  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

9type TelemetryEvent = Vec<HashMap<String, serde_json::Value>>;
10
11pub fn router() -> Router {
12 Router::new()
13 .route("/api/telemetry", post(telemetry))
14}
15
16async fn telemetry(Json(request): Json<TelemetryEvent>) -> Json<serde_json::Value> {
17 Json(json!({ "message": "ok", "published": request.len() }))

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected