summaryrefslogtreecommitdiffstats
path: root/src/api
diff options
context:
space:
mode:
authorToby Vincent <tobyv@tobyvin.dev>2024-04-16 13:56:26 -0500
committerToby Vincent <tobyv@tobyvin.dev>2024-04-16 13:56:26 -0500
commite607eb77d4253adfb15c8a4ce08684e16ae96674 (patch)
tree921e6d002d9e3dc761f5d1bb7fea82abd2045919 /src/api
parent469cbc20853bcae0e74922f16f7a969d1b7a9a67 (diff)
refactor(auth): move credential resource to module
Diffstat (limited to 'src/api')
-rw-r--r--src/api/users.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/api/users.rs b/src/api/users.rs
index 45d69fe..7b378ef 100644
--- a/src/api/users.rs
+++ b/src/api/users.rs
@@ -57,8 +57,8 @@ pub async fn create(
return Err(Error::EmailExists);
}
- // TODO: Move this into a tower service
- let (status, (access, refresh)) = crate::auth::create(
+ // TODO: Move this into a micro service
+ let (status, (access, refresh)) = crate::auth::credentials::create(
State(state.clone()),
TypedHeader(Authorization::basic(&email, &password)),
)