This commit is contained in:
2026-05-17 13:33:10 +02:00
parent b2cefb7d66
commit fed75d4820
54 changed files with 3845 additions and 51 deletions
+9 -4
View File
@@ -8,11 +8,12 @@ use axum::Json;
#[utoipa::path(
post,
path = "/api/auth/login",
path = "/auth/login",
responses(
(status = 200, description = "Login successful", body = LoginResponse),
(status = 401, description = "Unauthorized")
)
),
tag = "Auth"
)]
pub async fn login_user_pw(
State(state): State<AppState>,
@@ -41,11 +42,15 @@ pub async fn login_user_pw(
#[utoipa::path(
post,
path = "/api/auth/check",
path = "/auth/check",
responses(
(status = 200, description = "Login successful", body = LoginResponse),
(status = 401, description = "Unauthorized")
)
),
security(
("bearerAuth" = [])
),
tag = "Auth"
)]
pub async fn check(
State(_state): State<AppState>,