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

Function router

api/src/user/mod.rs:32–38  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

30}
31
32pub fn router() -> Router {
33 Router::new()
34 .route("/api/user", get(get_user_info))
35 .route("/api/connections", get(get_connections))
36 .route("/api/threads/sync", post(sync_thread))
37 .route("/api/internal", post(internal))
38}
39
40async fn get_user_info() -> Json<serde_json::Value> {
41 Json(json!(

Callers 1

startFunction · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected