2023-08-11 20:45:35 +00:00
|
|
|
mod api;
|
2023-08-12 12:41:28 +00:00
|
|
|
mod backend;
|
2023-08-11 20:45:35 +00:00
|
|
|
mod call;
|
|
|
|
|
|
|
|
use anyhow::Result;
|
|
|
|
|
|
|
|
#[tokio::main]
|
|
|
|
async fn main() -> Result<()> {
|
|
|
|
println!("Starting BaseAuth server v0.1");
|
2023-08-12 10:38:11 +00:00
|
|
|
|
2023-08-12 12:41:28 +00:00
|
|
|
let backend = backend::Backend::new()?;
|
|
|
|
|
|
|
|
let tx = call::start_worker(backend).await?;
|
2023-08-12 10:38:11 +00:00
|
|
|
api::start_worker(8080, tx).await?;
|
|
|
|
|
|
|
|
loop {}
|
2023-08-11 20:45:35 +00:00
|
|
|
}
|