Better structure and logger
This commit is contained in:
+3
-2
@@ -5,6 +5,7 @@ use voxa_server::{ServerConfig, vfs};
|
||||
fn main() -> anyhow::Result<()> {
|
||||
let root = PathBuf::new();
|
||||
let config: ServerConfig = vfs::read_config(&root.join("config.json"))?;
|
||||
|
||||
config.start(&root)
|
||||
let mut server = config.build(&root);
|
||||
server.run()?;
|
||||
Ok(())
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user