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

Function get_user_info

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

Source from the content-addressed store, hash-verified

38}
39
40async fn get_user_info() -> Json<serde_json::Value> {
41 Json(json!(
42 {
43 "id": ulid::Ulid::new().to_string(),
44 "username": "USER_001",
45 "email": "user_001@any.com",
46 "firstName": "Any",
47 "lastName": "User",
48 "emailVerified": true,
49 "profilePictureUrl": "https://picsum.photos/200",
50 "lastSignInAt": chrono::Utc::now().to_rfc3339_opts(chrono::SecondsFormat::Millis, true),
51 "createdAt": chrono::Utc::now().to_rfc3339_opts(chrono::SecondsFormat::Millis, true),
52 "updatedAt": chrono::Utc::now().to_rfc3339_opts(chrono::SecondsFormat::Millis, true),
53 "siteAdmin": true
54 }
55 ))
56}
57
58async fn get_connections() -> Json<serde_json::Value> {
59 Json(json!([]))

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected