()
| 38 | } |
| 39 | |
| 40 | async 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 | |
| 58 | async fn get_connections() -> Json<serde_json::Value> { |
| 59 | Json(json!([])) |
nothing calls this directly
no outgoing calls
no test coverage detected