From e607eb77d4253adfb15c8a4ce08684e16ae96674 Mon Sep 17 00:00:00 2001 From: Toby Vincent Date: Tue, 16 Apr 2024 13:56:26 -0500 Subject: refactor(auth): move credential resource to module --- src/api/users.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/api') 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)), ) -- cgit v1.2.3-70-g09d2