feat: implement surrealdb and redis

This commit is contained in:
Maulana Sodiqin
2025-02-25 02:00:19 +07:00
parent 9abab01b9c
commit 44de53a49d
18 changed files with 2501 additions and 137 deletions
+9 -4
View File
@@ -1,6 +1,11 @@
use super::{mutation_login, AuthLoginRequestDto};
use axum::{response::Response, Json};
use axum::{response::IntoResponse, Extension, Json};
pub async fn post_login(Json(payload): Json<AuthLoginRequestDto>) -> Response {
mutation_login(payload).await
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
}