summaryrefslogtreecommitdiffstats
path: root/src/routes/auth.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/routes/auth.rs')
-rw-r--r--src/routes/auth.rs12
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