Improved config stuff

This commit is contained in:
2025-08-29 19:41:46 +02:00
parent 494ecd6204
commit 6797007526
8 changed files with 148 additions and 4 deletions
+4 -1
View File
@@ -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)
}