baseauth/src/main.rs

18 lines
298 B
Rust

mod api;
mod backend;
mod call;
use anyhow::Result;
#[tokio::main]
async fn main() -> Result<()> {
println!("Starting BaseAuth server v0.1");
let backend = backend::Backend::new()?;
let tx = call::start_worker(backend).await?;
api::start_worker(8080, tx).await?;
loop {}
}