diff options
Diffstat (limited to 'src/main.rs')
| -rw-r--r-- | src/main.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/main.rs b/src/main.rs index c3dd99d..4c44afa 100644 --- a/src/main.rs +++ b/src/main.rs @@ -8,6 +8,7 @@ use std::error::Error; use structopt::clap::Shell; use whirl::{ + api::API, cli::cli, config::Config, server::{ @@ -83,6 +84,9 @@ async fn run() -> Result<(), Box<dyn Error>> { ) .await; }), + tokio::spawn(async move { + let _ = API::listen(); + }), ]; for thread in threads { let _ = thread.await; |