Get user profile #7
@@ -12,22 +12,3 @@ pub mod endpoints {
|
||||
pub const REFRESH_TOKEN: &str = "/api/v2/token/refresh";
|
||||
pub const GET_USER_PROFILE: &str = "/api/v2/user/profile/{id}";
|
||||
}
|
||||
|
||||
/*
|
||||
/// Endpoint to get user profile
|
||||
#[utoipa::path(
|
||||
get,
|
||||
path = super::super::endpoints::GET_USER_PROFILE,
|
||||
params(("id" = uuid::Uuid, Path, description = "Get user profile")),
|
||||
responses(
|
||||
(status = 200, description = "User profileRequestRequest found", body = super::response::GetUserProfileRequest)),
|
||||
(status = 404, description = "Song not found", body = super::response::GetUserProfileRequest)),
|
||||
(status = 400, description = "Error downloading song", super::response::GetUserProfileRequest)),
|
||||
)
|
||||
)]
|
||||
pub async fn get_user_profile(
|
||||
axum::Extension(pool): axum::Extension<sqlx::PgPool>,
|
||||
axum::extract::Path(id): axum::extract::Path<uuid::Uuid>,
|
||||
) -> (axum::http::StatusCode, axum::Json<axum::response::GetUserProfileResponse>) {
|
||||
}
|
||||
*/
|
||||
Reference in new issue
Block a user