Skip to content

Commit

Permalink
chore: propagate custom extractor
Browse files Browse the repository at this point in the history
  • Loading branch information
ParzivalEugene committed Aug 7, 2024
1 parent dc46535 commit 7f3fc4d
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 5 deletions.
3 changes: 2 additions & 1 deletion src/handlers/auth/authorize.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,11 @@ use crate::{
response::success::Response,
},
enums::errors::external::ExternalError,
extractors::Json,
services::user_service,
state::AppState,
};
use axum::{extract::State, http::StatusCode, Json};
use axum::{extract::State, http::StatusCode};
use tracing::info;

pub async fn authorize(
Expand Down
3 changes: 2 additions & 1 deletion src/handlers/auth/change_password.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,10 @@ use crate::{
response::success::Response,
},
enums::errors::external::ExternalError,
extractors::Json,
services::user_service,
};
use axum::{extract::State, http::StatusCode, Json};
use axum::{extract::State, http::StatusCode};
use deadpool_diesel::postgres::Pool;
use tracing::info;

Expand Down
4 changes: 2 additions & 2 deletions src/handlers/auth/sign_up.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ use crate::{
response::success::Response,

Check warning on line 5 in src/handlers/auth/sign_up.rs

View workflow job for this annotation

GitHub Actions / cargo fmt

Diff in /home/runner/work/master-backend-rust/master-backend-rust/src/handlers/auth/sign_up.rs
},
enums::errors::external::ExternalError,
services::user_service,
services::user_service,extractors::Json,
};
use axum::{extract::State, http::StatusCode, Json};
use axum::{extract::State, http::StatusCode};
use deadpool_diesel::postgres::Pool;
use tracing::info;

Expand Down
3 changes: 2 additions & 1 deletion src/handlers/session/create_session.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,10 @@ use crate::{
session::{request::CreateSession, response::Session},
},
enums::errors::external::ExternalError,
extractors::Json,
services::session_service,
};
use axum::{extract::State, http::StatusCode, Json};
use axum::{extract::State, http::StatusCode};
use deadpool_diesel::postgres::Pool;
use tracing::info;

Expand Down

0 comments on commit 7f3fc4d

Please sign in to comment.