Improved config stuff
This commit is contained in:
+4
-1
@@ -1,7 +1,10 @@
|
||||
use std::path::PathBuf;
|
||||
|
||||
use voxa_server::{ServerConfig, vfs};
|
||||
|
||||
fn main() -> anyhow::Result<()> {
|
||||
let root = PathBuf::new();
|
||||
let config = voxa_server::ServerConfig::default();
|
||||
let config: ServerConfig = vfs::read_config(&root.join("config.json"))?;
|
||||
|
||||
config.start(&root)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user