pub async fn start_server( state: AppState, host: &str, port: u16, static_dir: Option<&Path>, ) -> Result<()>
Start the web server.