init
This commit is contained in:
@@ -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>,
|
||||
|
||||
Reference in New Issue
Block a user