2025-02-25 02:00:19 +07:00
|
|
|
use axum::{response::IntoResponse, Extension, Json};
|
2025-02-08 00:58:54 +07:00
|
|
|
|
2025-02-25 02:00:19 +07:00
|
|
|
use super::{mutation_login, AuthLoginRequestDto};
|
|
|
|
|
use crate::AppState;
|
|
|
|
|
|
|
|
|
|
pub async fn post_login(
|
|
|
|
|
Extension(state): Extension<AppState>,
|
|
|
|
|
Json(payload): Json<AuthLoginRequestDto>,
|
|
|
|
|
) -> impl IntoResponse {
|
|
|
|
|
mutation_login(payload, &state).await
|
2025-02-08 00:58:54 +07:00
|
|
|
}
|