summaryrefslogtreecommitdiff
path: root/src/main.rs
blob: ec04d93776fc3fe04b32378857a052202f7b17ba (plain)
use std::time::Duration;

use actix_web::{App, HttpServer};

mod api;

#[actix_web::main]
async fn main() -> std::io::Result<()> {
	HttpServer::new(|| App::new().service(api::liveops()))
		.shutdown_timeout(1)
		.bind(("127.0.0.1", 8080))?
		.run()
		.await
}