Added apis
This commit is contained in:
@@ -20,12 +20,12 @@ pub struct ServiceRegister {
|
||||
}
|
||||
|
||||
impl ServiceRegister {
|
||||
pub fn new(_pool: ConnectionPool, _config: AppConfig) -> Self {
|
||||
pub fn new(pool: ConnectionPool, _config: Arc<AppConfig>) -> Self {
|
||||
info!("creating services");
|
||||
|
||||
let item_service = Arc::new(DefaultItemService::new()) as DynItemService;
|
||||
let project_service = Arc::new(DefaultProjectService::new()) as DynProjectService;
|
||||
let user_service = Arc::new(DefaultUserService::new()) as DynUserService;
|
||||
let user_service = Arc::new(DefaultUserService::new(pool.clone())) as DynUserService;
|
||||
|
||||
info!("services created succesfully");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user