MCPcopy Create free account
hub / github.com/actix/examples / get_me

Function get_me

auth/simple-auth-server/src/auth_handler.rs:61–63  ·  view source on GitHub ↗
(logged_user: LoggedUser)

Source from the content-addressed store, hash-verified

59
60pub async fn get_me(logged_user: LoggedUser) -> HttpResponse {
61 HttpResponse::Ok().json(logged_user)
62}
63/// Diesel query
64fn query(auth_data: AuthData, pool: web::Data<Pool>) -> Result<SlimUser, ServiceError> {
65 use crate::schema::users::dsl::{email, users};
66

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected