mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2025-07-19 07:03:37 +00:00
13 lines
358 B
Rust
13 lines
358 B
Rust
use flowy_dispatch::prelude::Module;
|
|
use flowy_user::prelude::UserSessionBuilder;
|
|
use std::sync::Arc;
|
|
|
|
pub struct ModuleConfig {
|
|
pub root: String,
|
|
}
|
|
|
|
pub fn build_modules(config: ModuleConfig) -> Vec<Module> {
|
|
let user_session = UserSessionBuilder::new().root_dir(&config.root).build();
|
|
vec![flowy_user::module::create(Arc::new(user_session))]
|
|
}
|