added swagget-ui
Continuous integration / Check (push) Successful in 42s
Continuous integration / Rustfmt (push) Successful in 34s
Continuous integration / build (push) Successful in 43s
Continuous integration / build-release (push) Successful in 1m12s

This commit is contained in:
wt committed 2026-02-15 18:04:11 +07:00
1 parent 78ca22e1b7
commit 9f0681563e
17 files changed
+544 -19

No files matched your search

+9
View File
@@ -7,6 +7,15 @@ use chrono::{Duration, Utc};
use sqlx::Row;
use std::sync::Arc;
#[utoipa::path(
post,
path = "/api/login",
request_body = LoginRequest,
responses(
(status = 200, description = "Login successful", body = AuthResponse),
(status = 400, description = "Invalid credentials", body = AuthResponse)
)
)]
pub async fn login_handler(
State(state): State<Arc<state::AppState>>,
Json(payload): Json<model::LoginRequest>,