Release v0.2.1

This commit is contained in:
Shiroyasha 2024-06-12 14:03:16 +03:00
parent 5eedf26ca8
commit 27f06f5f2a
Signed by: shiroyashik
GPG key ID: E4953D3940D7860A
10 changed files with 586 additions and 115 deletions

View file

@ -1,7 +1,6 @@
use anyhow_http::{http_error_ret, response::Result};
use axum::{
body::Bytes,
debug_handler,
extract::{Path, State},
Json,
};
@ -20,7 +19,6 @@ use crate::{
AppState,
};
#[debug_handler]
pub async fn user_info(
Path(uuid): Path<Uuid>,
State(state): State<AppState>,
@ -85,7 +83,6 @@ pub async fn user_info(
Json(user_info_response)
}
#[debug_handler]
pub async fn download_avatar(Path(uuid): Path<Uuid>) -> Result<Vec<u8>> {
let uuid = format_uuid(&uuid);
tracing::info!("Requesting an avatar: {}", uuid);
@ -104,7 +101,6 @@ pub async fn download_avatar(Path(uuid): Path<Uuid>) -> Result<Vec<u8>> {
Ok(buffer)
}
#[debug_handler]
pub async fn upload_avatar(
Token(token): Token,
State(state): State<AppState>,