mirror of
https://github.com/n08i40k/schedule-parser-rusted.git
synced 2025-12-06 17:57:47 +03:00
11 lines
311 B
Rust
11 lines
311 B
Rust
use crate::extractors::base::AsyncExtractor;
|
|
use crate::routes::schema::user::UserResponse;
|
|
use actix_web::get;
|
|
use database::entity::User;
|
|
|
|
#[utoipa::path(responses((status = OK, body = UserResponse)))]
|
|
#[get("/me")]
|
|
pub async fn me(user: AsyncExtractor<User>) -> UserResponse {
|
|
user.into_inner().into()
|
|
}
|