diff options
| author | Santo Cariotti <santo@dcariotti.me> | 2022-09-20 12:39:47 +0000 |
|---|---|---|
| committer | Santo Cariotti <santo@dcariotti.me> | 2022-09-20 12:39:47 +0000 |
| commit | b65ad29774d2a58372058d1aeafca5a423efb8d4 (patch) | |
| tree | 211831f205cd2e156552d986247c9898c54f9502 /src/routes/auth.rs | |
| parent | 89c0c4f609bd3232a4374fd0b8fbba233d5273fd (diff) | |
Merge all crates import as `use crate::<module name>`
Diffstat (limited to 'src/routes/auth.rs')
| -rw-r--r-- | src/routes/auth.rs | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/src/routes/auth.rs b/src/routes/auth.rs index 7cd16ad..0fe92fc 100644 --- a/src/routes/auth.rs +++ b/src/routes/auth.rs @@ -1,9 +1,11 @@ -use crate::errors::AppError; -use crate::models::{ - auth::{AuthBody, Claims, LoginCredentials, SignUpForm}, - user::User, +use crate::{ + errors::AppError, + models::{ + auth::{AuthBody, Claims, LoginCredentials, SignUpForm}, + user::User, + }, + routes::JsonCreate, }; -use crate::routes::JsonCreate; use axum::{routing::post, Json, Router}; /// Create routes for `/v1/auth/` namespace |
