Started to implement accounts in the UI.
This commit is contained in:
1 parent
ce92916942
commit
76e1e8cb53
7 files changed
+172
-9
No files matched your search
@@ -1,4 +1,4 @@
|
||||
use crate::services::{SecurityService, SessionService, UserService};
|
||||
use crate::services::{SecurityService, SessionService, UserService, AccountService};
|
||||
|
||||
use actix_web::{error, Result};
|
||||
use r2d2::PooledConnection;
|
||||
@@ -55,4 +55,12 @@ impl ServicesFactory {
|
||||
) -> Result<SecurityService> {
|
||||
Ok(SecurityService::new(conn))
|
||||
}
|
||||
|
||||
pub fn get_account_service<'a>(
|
||||
&'a self,
|
||||
conn: &'a PooledConnection<SqliteConnectionManager>,
|
||||
)-> Result<AccountService> {
|
||||
Ok(AccountService::new(conn))
|
||||
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user